Execute two commands sequentially in autostart desktop file
Posted: Tue Aug 18, 2009 3:39 pm
I am using LXDE on my Debian 5.0 system. I am trying to auto-execute the following two commands sequentially:
and then
So I created a auto.desktop file in ~/config/autostart directory whose contents are:
Now I have tried both the "Exec" command above and none of them worked for me. For the first one Exec (the one commented) only the first command (README) gets executed. For the second command, only the later (install.sh) command gets executed.
How do I make two files launched sequentially (the second one - install.sh) executed only after user closes the first one - README.TXT).
Code: Select all
less /root/README.TXT #(Basically a README file)
Code: Select all
./root/install.sh #(a shell script)
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Name=AutoStart
Comment=README and Script
#Exec=xterm -e less '/root/README.TXT' && xterm -e '/root/install.sh'
Exec=lxterminal --command "less /root/README.TXT" && lxterminal --command "/root/install.sh"
Terminal=true
How do I make two files launched sequentially (the second one - install.sh) executed only after user closes the first one - README.TXT).