Run script after Xfce menu panel has loaded?

Get help with XFCE specific problems
rcrsf
Black ninja
Black ninja
Posts: 35
Joined: 26 Apr 2015, 18:33
Distribution: v3.1-x86_64
Location: California

Run script after Xfce menu panel has loaded?

Post#1 by rcrsf » 07 May 2015, 18:16

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!

User avatar
francois
Contributor
Contributor
Posts: 6444
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Run script after Xfce menu panel has loaded?

Post#2 by francois » 08 May 2015, 15:43

In xfce:
xfce menu > settings > session and startup > application autostart > add > name and script+path (in command box)
Prendre son temps, profiter de celui qui passe.

rcrsf
Black ninja
Black ninja
Posts: 35
Joined: 26 Apr 2015, 18:33
Distribution: v3.1-x86_64
Location: California

Re: Run script after Xfce menu panel has loaded?

Post#3 by rcrsf » 08 May 2015, 16:52

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.

User avatar
francois
Contributor
Contributor
Posts: 6444
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Run script after Xfce menu panel has loaded?

Post#4 by francois » 08 May 2015, 17:59

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
Prendre son temps, profiter de celui qui passe.

Post Reply