On 1/20/26 17:23, Wolfgang Gaggl wrote:
I think it would be fine to use a switch in the pd-gui.tcl script to chose xpm 
with IRIX/SGI in the platform init procedure, which is what I did (just 
replacing gif with xpm in the script).
We already install 3 flavors of Pd icons (gif, ico, xpm) with this 
distribution, and IRIX natively uses xpm (which will not change anymore). Any 
updates that allow gif as WM icons would not be natively available on IRIX, and 
it seems too restrictive to expect the user to patch their system for this.
Given that xpm is expected as the native format by the window manager, I am not 
aware of an image format check for this on Irix.
If you think this is too much hassle or not generalized enough I can look for a 
better solution (IRIX has tools to convert image formats, I'm just not sure 
without checking what comes with the plain vanilla system installation).


so you are saying that my suggested code change (in my email from today 10:11CET) does work for you?

because for me the "image create photo /path/to/pd.xpm" simply fails with
```
--------------------------------------------------------------------------------
(Tcl) UNHANDLED ERROR: couldn't recognize data in image file ".../pd-0.56-2-24-gf30a183a/tcl/pd.xpm"
    while executing
"image create photo -file $icon"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 ${tclentry}"
```

so i guess the question is:
- what do you get?
- what do you get if you just load the .gif file (without setting it as an icon)? (aka can we get a non-fatal error from that?)

i find it easiest to run tests with the tclprompt-plugin (go to "Find externals" and search for "tclprompt-plugin"; install it and restart Pd). this should give you a prompt line in the main Pd window where you can run Tcl/Tk commands interactively.


mfdasr
IOhannes
--
please do not CC me for list-emails

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/BBNHRH7R5XALWQEWR643TJDXAABYT5LW/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/

Reply via email to