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).
|
feedback
|
migrated from stackoverflow.com Mar 29 '10 at 0:11
This question came from our site for professional and enthusiast programmers.
|
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, | |||
|
feedback
|
|
+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... | |||||
|
feedback
|
.bash_profilefor bash? – Jefromi Mar 28 '10 at 20:58