Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I have written a script that uses the import command. I want to start it when user logins. I put path of the script in /etc/profile but because it starts before starting gnome I get errors and can't even login.

I also tried putting that in ~/.xinitrc but that doesn't seem to launch at all.

I use Arch. Where should I put the path of script in order to start after all graphical services has been started?

share|improve this question

marked as duplicate by goldilocks, uther, Renan, warl0ck, rahmu Mar 5 '13 at 16:11

This question was marked as an exact duplicate of an existing question.

/etc/profile is system-wide. If you want to use it for one user, use ~/.profile or ~/.bash_profile. It would be best if you would tell us what the script should do and how it does look like.

share|improve this answer

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