How to start a program automatic
anyone can tell me that how to start a program automatic after my os (FEDORA 20) start........??
anyone can tell me that how to start a program automatic after my os (FEDORA 20) start........??
Method 1: Use the init scripts
/etc/init.d
. How to do that is described below./etc/init.d
.chmod +x /etc/init.d/SCRIPTNAME.sh
.Method 2: Use /etc/xdg/autostart (or /usr/share/autostart)
.desktop
file. This can mean two things, make the a.desktop
file execute the myscript.sh
file or you can have individual commands in the a.desktop file
. A more detailed guide is below:/etc/xdg/autostart
.[Desktop Entry] Type=Application Name=xscreensaver-autostart Comment=Autostart xscreensaver Exec=/usr/libexec/xscreensaver-autostart Terminal=false X-Desktop-File-Install-Version=0.22 OnlyShowIn=GNOME;
Note the [Desktop Entry]
at the top.
Exec
part should contain the path (full) to the script.Method 3: Use user-specific autostart
OTHER WAYS:
mv $HOME/myscript.sh .config/autostart
Also, you may be able to use:
$ gnome-session-properties
if in GNOME. :)
HTH.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2014-08-03 13:19:30 -0600
Seen: 36,517 times
Last updated: Oct 22 '14
"alloc magic is broken" after update
Wireless not working on fedora 20
How to enable autostart of the display manager?
how to install nvidia proprietary driver Fedora 20?
Lenovo b50-70 Microphone not working
Flash player don't work on local files.
cd/dvd drive is not running ...??
Updated tags. Please don't have # in tags.