How do I allow a login script for one user in fedora? ~/.initrc doesn't seem to work, and I tried adding an executable to /etc/init.d but that's for all users (and it didnt work either anyway).
migrated from stackoverflow.com Mar 29 '10 at 0:11
|
Add a call to your script to the user's If you want to have the script start every time a shell is started, rather than just at login, you can use, for Bash for example, |
|||
|
|
|
+1 for Dennis' answer; this should work for the shell logins (and if not, you'll want to check if the appropriate configuration file is being read/sourced at shell start up). If you want to run something when a Fedora user logs into X (either Gnome or KDE), then you'll need to do something slightly different. If it's just for your user, you can (when you're running Gnome) use the System -> Preferences -> Sessions menu to set any items you want to run. If you want to do this using a file, I think Gnome sources: ~/.config/autostart . The entries in here should be in FreeDesktop style. For example:
I'm not sure how to do this using KDE though... |
|||||
|
|
|
folder:
from http://cholla.mmto.org/computers/linux/session.html shell-command:
the command edits the folder from above - so have a look there if the scipt does not execute. |
|||
|
|
.bash_profilefor bash? – Jefromi Mar 28 '10 at 20:58