site  contact  subhomenews

Icon-free desktop tray icon fix

September 12, 2024 — BarryK

Forum member Caramel reported the problem:

https://forum.puppylinux.com/viewtopic.php?p=130762#p130762

Yes, when in rox-mode, if drag a folder from ROX-Filer onto the desktop, after switching to jwm-mode (icon-free desktop), the icon appears in the tray but doesn't work.

Here is an example in /root/Choices/ROX-Filer/PuppyPin:

<icon x="1144" y="164" label="usr">/usr</icon>

When X is restarted after switching from rox-mode to jwm-mode, /root/.xinitrc runs and calls /usr/local/ui/jwm/jwmrc-insert-icons, which is responsible for translating icons from the ROX desktop to appear in the JWM tray. I have modified this script, see github commit:

https://github.com/bkauler/woofq/commit/4c7c4a7a049676653762da7fd5b29fab2a52d2c9

Now an entry in /root/.jwmrc-tray is created that is correct:

<TrayButton popup="usr" icon="folder48.png">exec:/usr/local/bin/rox --dir=/usr</TrayButton>

Caramel, thanks for reporting that; little fixes like this are important.

I have just realised that EasyJWM is missing something important; it cannot delete icons in the tray that have been transferred from the ROX desktop. It can be done manually, by editing /root/.jwm/tray-icons and /root/.jwmrc-tray.       

Tags: easy