Thumbnail images in IRIX? -
Irinikus - 05-11-2019
It' it possible to assign custom thumbnail images to script files in IRIX. If so, how is this accomplished?
RE: Thumbnail images in IRIX? -
gijoe77 - 05-15-2019
yeah this would make a great FAQ - assigning custom icons to any file. I've been wanted to look into this for years but never got to it.. I hope someone can help with this topic
RE: Thumbnail images in IRIX? -
Trippynet - 05-15-2019
Main question here, are you talking about desktop icons, or the minimised-running-program thumbnails?
The former is really quite easy. The latter, I'm not so sure about.
RE: Thumbnail images in IRIX? -
Irinikus - 05-15-2019
(05-15-2019, 01:56 PM)Trippynet Wrote: Main question here, are you talking about desktop icons, or the minimised-running-program thumbnails?
The former is really quite easy. The latter, I'm not so sure about.
Im talking about icons to assign to scripts that I've placed in the Icon catalog.
Certain programs, especially games such as Quake don't run if instances of their "execute files" are placed in the Icon catalog, so I've made up scripts that allow such programs to run properly from the Icon catalog, I would like to assign proper icons to these scripts if at all possible.
RE: Thumbnail images in IRIX? -
Trippynet - 05-15-2019
Yep, quite straightforward. Assuming an icon already exists for the program in IRIX's icon folder, it's simply a case of assigning the tag for that icon to the script. So, set the top two lines of the script to:
Quote:#!/bin/sh
#Tag [tag_number]
Obviously replace [tag_number] with that for the icon.
To find the tag for an existing program, run tag -q [filename].
For example on my system, my script on the desktop to launch XMMS as root is:
Quote:#!/bin/sh
#Tag 2020437363
su root -c "/usr/nekoware/bin/xmms"
Result, the script on my desktop has the XMMS icon.
RE: Thumbnail images in IRIX? -
Irinikus - 05-15-2019
(05-15-2019, 07:02 PM)Trippynet Wrote: Yep, quite straightforward. Assuming an icon already exists for the program in IRIX's icon folder, it's simply a case of assigning the tag for that icon to the script. So, set the top two lines of the script to:
Quote:#!/bin/sh
#Tag 2020437363
Obviously replace the tag number with that for the icon.
To find the tag for an existing program, run tag -q [filename].
Thanks!
RE: Thumbnail images in IRIX? -
gijoe77 - 05-15-2019
(05-15-2019, 01:56 PM)Trippynet Wrote: Main question here, are you talking about desktop icons, or the minimised-running-program thumbnails?
The former is really quite easy. The latter, I'm not so sure about.
the former - I was under the impression the minimized-icon was something that either had to be compiled in or maybe set in some x-related file somewhere. I was looking at this document about the minimized behavior
https://irix7.com/techpubs/007-2167-006.pdf, but I haven't really made much progress on either fronts.
(05-15-2019, 07:02 PM)Trippynet Wrote: Yep, quite straightforward. Assuming an icon already exists for the program in IRIX's icon folder, it's simply a case of assigning the tag for that icon to the script. So, set the top two lines of the script to:
Quote:#!/bin/sh
#Tag [tag_number]
Obviously replace [tag_number] with that for the icon.
To find the tag for an existing program, run tag -q [filename].
For example on my system, my script on the desktop to launch XMMS as root is:
Quote:#!/bin/sh
#Tag 2020437363
su root -c "/usr/nekoware/bin/xmms"
Result, the script on my desktop has the XMMS icon.
cool stuff - what is the path to IRIX's icon folder?
edit: oh wait do you mean the icon catalog? Any idea how to add custom icons and attach those to some random file and/or script?
RE: Thumbnail images in IRIX? -
Trippynet - 05-15-2019
Icons in IRIX aren't completely straightforward. If you can find a pre-made icon, it isn't too bad. There should be a .ftr and a .fti file. Copy the .ftr into /usr/lib/filetype/local and copy the .fti into /usr/lib/filetype/local/iconlib
Once done, run "make -u" and you've added the icon. All you then need to do is to match the tag of the icon to that of an application or (tagged) script.
There's some more detail near the top of here:
https://wiki.preterhuman.net/IRIX_Customizing_the_Desktop
Of course, the real fun is making your own icons. It has been a while since I've done this mind you!