You are not logged in.

#1 2009-07-17 23:20:31

RyanPridgeon
Member
Registered: 2009-07-08
Posts: 4

Login start up script

Is there a way to make Arch run a script automatically whenever I log in?

For example if I wanted it to run foo.sh or some bash I made.

Thankyou smile

Offline

#2 2009-07-17 23:29:35

Mr Pink57
Member
From: a van down by the river
Registered: 2009-05-30
Posts: 91

Re: Login start up script

I believe you just need to put the path to the script in your /etc/rc.local

pink


Even a broken clock is right twice a day.

Diplomacy without force is like music without instruments.

Offline

#3 2009-07-18 00:05:14

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Login start up script

Calling it from ~/.bash_profile  (if you are using bash) can be one way to do it.

Having your wm execute it can also be a solution.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2009-07-18 00:06:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Login start up script

rc.local runs at boot time, not when you log in.

If you're logging in at a console, use .bashrc. If you're going straight to X, use .xinitrc or your DE/WM's autostart function.

Offline

Board footer

Powered by FluxBB