Page 1 of 1

Run script after Xfce menu panel has loaded?

Posted: 07 May 2015, 18:16
by rcrsf
The icons on my menu panel are not appearing correctly upon boot.

However, if I run this script after boot, they appear correctly:

#!/bin/bash
killall xfce4-panel
xfce4-panel

My question is: Where can I put this script so that it runs AFTER the Xfce desktop has loaded?
I saw the instructions about placing startup scripts in /etc/rc.d/rc.local , but that is too soon (has no effect).

Thanks in advance for any tips!

Re: Run script after Xfce menu panel has loaded?

Posted: 08 May 2015, 15:43
by francois
In xfce:
xfce menu > settings > session and startup > application autostart > add > name and script+path (in command box)

Re: Run script after Xfce menu panel has loaded?

Posted: 08 May 2015, 16:52
by rcrsf
That worked - thank you francois!

I put the script in the /porteus/rootcopy/ folder

I'm not sure if the order of autostart items matters (some of them are items on the xfce menu panel), but I put it at the bottom by starting the name with zzz. Whether that makes a difference or not, it's working. :)

Note to anyone else with this issue: you cannot put the commands directly into the command box, as menu will stop but not reload for some reason. You must put a /path/to/script in the command box.

Re: Run script after Xfce menu panel has loaded?

Posted: 08 May 2015, 17:59
by francois
You could put the command given that your script would be in the defined path:

Code: Select all

root@porteus:~# echo $PATH
http://unix.stackexchange.com/questions ... th-to-path