saintless wrote:fredx181 wrote:Comment out the frisbee and volumeicon lines in~/.icewm/startup.
Copy /usr/bin/frisbee-tray to /root/Startup
Create new shellscript in /root/Startup with:
Thank you, Fred. I will change it this way.
The following scheme seems to work for me:
In /root/Startup, I have the following shell scripts (using exec to not keep the starting sh process):
volumeicon_start
desktopdriveicons_start
Code: Select all
#!/bin/sh
exec desktop_drive_icons &
roxwallpapers_start
Code: Select all
#!/bin/sh
exec /opt/apps/wallpapers/wallpapers.d rox &
and a relative symbolic link to ../../usr/bin/frisbee-tray
Then in /root/.icewm/startup I simply have:
Code: Select all
#!/bin/sh
exec /opt/bin/start-up &
And in /opt/bin/start-up, I have:
Code: Select all
#!/bin/bash
/usr/bin/rox -p /root/.config/rox.sourceforge.net/ROX-Filer/pinbd &
wait
ls /root/Startup/* | while read J
do
"$J" &
wait
done
Gets rid of lots of sleeps and seems to work perfectly on my system though I haven't tested it much yet.
Would be worth checking that a restart iceWM doesn't lose any of the icons.
Also prior to the above arrangement I used to get an annoying little X window obscuring the xterm icon sometimes and that problem hasn't resurfaced here yet.
I'm not sure if the second "wait" above is important - I'll try without it.
EDIT: Actually, removing the & from the end of line: /usr/bin/rox -p ... pinbd, and also removing both 'wait' commands seemed to work for me too. Result:
/opt/bin/start-up
Code: Select all
#!/bin/bash
/usr/bin/rox -p /root/.config/rox.sourceforge.net/ROX-Filer/pinbd
ls /root/Startup/* | while read J
do
"$J" &
done
But as I say, I haven't tested this much for reliability yet. Perhaps (?) it is more reliable with the wait(s) but I'd try without first.