It is currently Sat Nov 18, 2017 11:11 am




Post new topic Reply to topic  [ 1 post ] 
 Running script from /etc/xdg/autostart? 
Author Message
member
member

Joined: Fri Jun 23, 2017 9:52 am
Posts: 220
Post Running script from /etc/xdg/autostart?
0
down vote
favorite
I tried to run bash script from *.desktop as a startup, but strangely the system called the script twice.

It's music.desktop at /etc/xdg/autostart/music.desktop :

[Desktop Entry]
Encoding=UTF-8
Name=Music
GenericName=program
Comment=Play song
Exec=./play.sh &
Icon=/usr/share/pixmaps/program.jpg
Terminal=true
and in play.sh

lame --decode Song.mp3 - | aplay - -q
and it's only one line, but the system is calling it twice. How can I fix it?

Please help...

I didn't find the right solution from the Internet.
References
https://askubuntu.com/questions/950867/ ... -autostart
Brand Product Teaser


Thu Aug 31, 2017 6:48 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Web Design Wigan Dog Kennels and Runs