Peppermint | Linux OS Community Forum
 
It is currently Mon Jul 28, 2014 4:27 pm

All times are UTC - 5 hours [ DST ]





Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: (solved) Autostart config?
PostPosted: Wed Sep 22, 2010 8:02 am 
Offline
User avatar

Joined: Thu Sep 16, 2010 12:48 am
Posts: 67
Location: TriCities, WA
Hi, new to LXDE; Sorry, I searched around & still can't find how to add new start up applications. I set up a custom Wbar for my Peppermint ICE and would like my exec command to auto start. Should be in ~/.config/autostart ?? but don't see that file. Thanks.


Top
 Profile  
 
 

 Post subject: Re: Autostart config?
PostPosted: Wed Sep 22, 2010 8:15 am 
Offline
User avatar

Joined: Tue May 25, 2010 9:00 am
Posts: 744
Location: Atlanta Ga
I'm doing this from memory so one of the other mods (or users) can correct me if I'm wrong.

I believe the autostart you are looking for is:

Code:
/etc/xdg/lxsession/Peppermint/autostart


You should be able to add anything there you need and save the file. Or you can create .desktop files to launch programs at startup.

_________________
Peppermint Forums Moderator
Asus Eee PC | Pmint2 | Win XP | Arch (Fluxbox)
Toshiba Sat. P15 | Testing Machine
Custom AMD Desktop | Pmint2 64-bit | Win 7
My Site | Google+| Facebook | Twitter: @eng1nerd


Top
 Profile  
 
 Post subject: Re: Autostart config?
PostPosted: Wed Sep 22, 2010 8:21 am 
Offline
User avatar

Joined: Thu May 20, 2010 8:56 am
Posts: 2132
The idea is to drop .desktop launchers into the autostart folder; these are exec'd on login. If your command has a *.desktop launcher that works appropriately (it'll be in /usr/share/applications) then the most straightforward way of having Wbar autostart at login is to copy it over to ~/.config/autostart. Failing that then another option is to create a file at

Code:
/.config/local/openbox/autostart.sh


which openbox will run when it starts up. Here's an example from Trent's tutorial about setting up Openbox to work without lxde.

Code:
fbsetbg -f -r /home/trent/wallpaper
nm-applet &
xscreensaver -no-splash &
gnome-power-manager &
gnome-keyring-daemon
mail-notification &
/home/trent/touchpad.sh
(sleep 2 && lxpanel) &


As you can see openbox pretty much just runs through the script and exec's the commands you put in. Note the sleep for two seconds before lxpanel gets started; you might need to do this with your Wbar if you encounter instability when running it straight away.

Hope that's helpful. Note that there are other ways of getting things to autostart on login; I sometimes feel too many. See the reply that got posted while I drafted this, their's is a system-wide solution. There are still others.

_________________
Admin


Top
 Profile  
 
 Post subject: Re: Autostart config?
PostPosted: Wed Sep 22, 2010 10:38 am 
Offline
User avatar

Joined: Thu Sep 16, 2010 12:48 am
Posts: 67
Location: TriCities, WA
enginerd wrote:
I'm doing this from memory so one of the other mods (or users) can correct me if I'm wrong.

I believe the autostart you are looking for is:

Code:
/etc/xdg/lxsession/Peppermint/autostart


You should be able to add anything there you need and save the file. Or you can create .desktop files to launch programs at startup.


Thanks, worked like a charm :) Now just need to add a delay to its startup.

Rich_Roast wrote:
The idea is to drop .desktop launchers into the autostart folder......

Hope that's helpful. Note that there are other ways of getting things to autostart on login; I sometimes feel too many. See the reply that got posted while I drafted this, their's is a system-wide solution. There are still others.


Thanks for the additional options :)


Top
 Profile  
 
 Post subject: Re: Autostart config?
PostPosted: Wed Sep 22, 2010 11:28 am 
Offline
User avatar

Joined: Tue May 25, 2010 9:00 am
Posts: 744
Location: Atlanta Ga
you should be able to add the delay using

Code:
sleep 5 && then_your_startup_command

_________________
Peppermint Forums Moderator
Asus Eee PC | Pmint2 | Win XP | Arch (Fluxbox)
Toshiba Sat. P15 | Testing Machine
Custom AMD Desktop | Pmint2 64-bit | Win 7
My Site | Google+| Facebook | Twitter: @eng1nerd


Top
 Profile  
 
 Post subject: Re: Autostart config?
PostPosted: Wed Sep 22, 2010 10:24 pm 
Offline
User avatar

Joined: Thu Sep 16, 2010 12:48 am
Posts: 67
Location: TriCities, WA
enginerd wrote:
you should be able to add the delay using

Code:
sleep 5 && then_your_startup_command


Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL