Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to run a script at login, and this is the way I've found to do it.

I'ved edited /etc/rc.local with a line such as bash /home/me/script.sh.

I've made that script executable.

It doesn't seem that my command is being executed upon login. What steps could I take to debug this?

My distro is Linux Mint 12 running Gnome.

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

/etc/rc.local is executed at boot, not during login. If you want to run something at login, you'd normally put it in ~/.profile or ~/.bash_profile. For GUI applications, Gnome has a Startup Applications tool.

Or did you mean "boot" when you said "login"?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.