I'm using XFCE 4.4.2. Using the "xfce4-autostart-editor" command, I have added a bash script to the list of startup applications. I want it to run in an xterm window.
On startup, the xterm window appears, but the script isn't running. I only see a "bash-3.1#" prompt.
the "~/.config/autostart/myscript.desktop" file looks like this:
[Desktop Entry] Encoding=UTF-8 Version=0.9.4 Type=Application Name=MyStartup Comment= Exec=~/startup.sh StartupNotify=false Terminal=true Hidden=false
If I run the script directly using ~/startup.sh, it works correctly. Other applications I have in my autostart list (like "Xfce Volstatus Icon" and "Network Manager") work correctly.
What do I need to do to fix this?
Compared this to my .desktop for an autostart and noted I use the full path for the file. Try replacing ~ by the full name, say /home/pheil (assumuning your user name is pheil).
I fixed it by changing the command to "bash ~/myscript.sh". I don't know why I have to specify bash....