qwert
Posts: 3
Joined: Thu Jul 26, 2012 6:13 am

Running a command after login

Thu Jul 26, 2012 6:28 am

All I want to do is to launch xchat after my Pi gets to the desktop. No amount of googling has managed to find anything that works, sadly. Simple instructions on which file to put "xchat" into would be appreciated.

Running Raspbian “wheezy”

W. H. Heydt
Posts: 14393
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Running a command after login

Thu Jul 26, 2012 6:37 pm

One way to do it would be to open a terminal window and type "xchat" at the prompt.

I'm sure that LXDE has a way to add commands to its menus (and one can easily make desktop shortcuts out of menu items), but I need to research how to do that myself.

qwert
Posts: 3
Joined: Thu Jul 26, 2012 6:13 am

Re: Running a command after login

Thu Jul 26, 2012 7:25 pm

Should have been more clear, I want to run it automatically.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Running a command after login

Fri Jul 27, 2012 2:24 am

~/.xinitrc

put it in there.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

qwert
Posts: 3
Joined: Thu Jul 26, 2012 6:13 am

Re: Running a command after login

Fri Jul 27, 2012 5:59 am

SirLagz wrote:~/.xinitrc

put it in there.
This file does not exist by default. (Yes I know how to ls -a)

Adding it both with and without execute permissions does nothing at all.

W. H. Heydt
Posts: 14393
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Running a command after login

Fri Jul 27, 2012 6:35 am

SirLagz wrote:~/.xinitrc

put it in there.
Figures.... :-)

khh
Posts: 49
Joined: Thu Jul 26, 2012 12:16 am

Re: Running a command after login

Fri Jul 27, 2012 8:17 am

SirLagz wrote:~/.xinitrc

put it in there.
That's actually quite handy. I'll have to remember that.

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Running a command after login

Fri Jul 27, 2012 2:34 pm

qwert wrote:
SirLagz wrote:~/.xinitrc

put it in there.
This file does not exist by default. (Yes I know how to ls -a)

Adding it both with and without execute permissions does nothing at all.
lol, that used to work

Tried this ?
http://wiki.lxde.org/en/Autostart
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

Return to “Beginners”