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.

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
add comment

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

/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
add comment

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