Thumbnail images in IRIX?
#1
Thumbnail images in IRIX?
It' it possible to assign custom thumbnail images to script files in IRIX. If so, how is this accomplished?

[Image: rZbyrYx.png]
(This post was last modified: 05-11-2019, 01:48 PM by Irinikus.)
Irinikus
Connoisseur

Posts: 860
Threads: 154
Joined: Dec 2017
Website Find Reply
05-11-2019, 12:49 PM
#2
RE: Thumbnail images in IRIX?
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
gijoe77
Tezro

Posts: 570
Threads: 33
Joined: Jun 2018
Find Reply
05-15-2019, 10:51 AM
#3
RE: Thumbnail images in IRIX?
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.

 Indigo2 IMPACT R10000 195MHz, 384MB RAM, MaxIMPACT (1MB), 36GB 15k & 300GB 10k drives, new/quiet fans, IRIX 6.5.22
Fuel R14000 600MHz, 4GB RAM, V10 Graphics, 72GB 15k & 300GB 10k drives, new/quiet fans, IRIX 6.5.30
O2 in storage...
Trippynet
Indigo2 IMPACT

Posts: 138
Threads: 5
Joined: Dec 2017
Find Reply
05-15-2019, 01:56 PM
#4
RE: Thumbnail images in IRIX?
(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.

[Image: rZbyrYx.png]
Irinikus
Connoisseur

Posts: 860
Threads: 154
Joined: Dec 2017
Website Find Reply
05-15-2019, 02:13 PM
#5
RE: Thumbnail images in IRIX?
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.

 Indigo2 IMPACT R10000 195MHz, 384MB RAM, MaxIMPACT (1MB), 36GB 15k & 300GB 10k drives, new/quiet fans, IRIX 6.5.22
Fuel R14000 600MHz, 4GB RAM, V10 Graphics, 72GB 15k & 300GB 10k drives, new/quiet fans, IRIX 6.5.30
O2 in storage...
(This post was last modified: 05-15-2019, 07:04 PM by Trippynet.)
Trippynet
Indigo2 IMPACT

Posts: 138
Threads: 5
Joined: Dec 2017
Find Reply
05-15-2019, 07:02 PM
#6
RE: Thumbnail images in IRIX?
(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!

[Image: rZbyrYx.png]
Irinikus
Connoisseur

Posts: 860
Threads: 154
Joined: Dec 2017
Website Find Reply
05-15-2019, 07:04 PM
#7
RE: Thumbnail images in IRIX?
(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?
(This post was last modified: 05-15-2019, 09:02 PM by gijoe77.)
gijoe77
Tezro

Posts: 570
Threads: 33
Joined: Jun 2018
Find Reply
05-15-2019, 08:05 PM
#8
RE: Thumbnail images in IRIX?
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_Custom...he_Desktop

Of course, the real fun is making your own icons. It has been a while since I've done this mind you!

 Indigo2 IMPACT R10000 195MHz, 384MB RAM, MaxIMPACT (1MB), 36GB 15k & 300GB 10k drives, new/quiet fans, IRIX 6.5.22
Fuel R14000 600MHz, 4GB RAM, V10 Graphics, 72GB 15k & 300GB 10k drives, new/quiet fans, IRIX 6.5.30
O2 in storage...
Trippynet
Indigo2 IMPACT

Posts: 138
Threads: 5
Joined: Dec 2017
Find Reply
05-15-2019, 09:17 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)