Xfce Forum

Sub domains
 

You are not logged in.

#1 2008-02-22 15:23:20

pheil
Member
Registered: 2008-02-22
Posts: 2

autostart bash script won't launch

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?

Thanks,
PaulH

Offline

#2 2008-02-25 17:27:35

Pindakoe
Member
From: NL
Registered: 2003-11-26
Posts: 116

Re: autostart bash script won't launch

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).

Offline

#3 2008-02-27 18:10:27

pheil
Member
Registered: 2008-02-22
Posts: 2

Re: autostart bash script won't launch

I fixed it by changing the command to "bash ~/myscript.sh". I don't know why I have to specify bash....

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 517.43 KiB (Peak: 521.16 KiB) ]