Ebay Powersellers Free Help & Advice Forum
http://powersellersforum.com/

Running script from /etc/xdg/autostart?
http://powersellersforum.com/viewtopic.php?f=11&t=7532119
Page 1 of 1

Author:  JoeClark [ Thu Aug 31, 2017 6:48 am ]
Post subject:  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

Page 1 of 1 All times are UTC - 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/