Specifying startup apps?
vaskark opened this issue ยท 10 comments
Probably a dumb question, but is there any way to specify a list of startup apps? I'm using a login manager, atm.
Thanks.
https://github.com/koutsie/dotfilez/blob/master/sowm.desktop
https://github.com/koutsie/dotfilez/blob/master/Scripts/sowm.sh
https://github.com/koutsie/dotfilez/blob/master/Scripts/it.sh
i guess you could do this all in one script but... :D
@koutsie Thanks so much for your help. It seems to be working fine. I'll report back if I hit a snag or two. I know I might get roasted for this, but including a line in config.h
for a startup script would be a nice addition.
Anyway, thanks again.
There's kind of no need for that but, ask dyln.
Also the way I do this is a big mess.
I know I might get roasted for this, but including a line in
config.h
for a startup script would be a nice addition.
That would be trivial. Take a look at this patch for dwm.
@vaskark In addition to the excellent links @koutsie pointed out. Here's a write-up for setting up an sowm
session.
@Leon-Plickat Thats a neat patch, but invoking the sowm
and startup apps from a .xsessionrc
or .xinitrc
feels a bit more unixy ๐
Thats a neat patch, but invoking the sowm and startup apps from a .xsessionrc or .xinitrc feels a bit more unixy
True, that's why I did not create a .patch for that. However in the case of OP, who starts sowm via a Display Manager and not manually via startx
, the .xinitrc
wont help much.
A Display Manager, such as lightdm for example, simply keeps its own X session alive and runs the users software in that. So xinit is never executed by your user account, therefore the contents your .xinitrc
won't do anything. Instead, the DM executes a binary or script specified in a .desktop
file. In this case, letting the WM execute a startup script makes sense.
And let's not pretend that anything regarding X is "unixy" in the first place.
@Leon-Plickat Thanks for the info regarding Display Managers. I've learned something new today. The links that @koutsie pointed out, is the way to go.
Thanks for all your replies. I decided to follow @koutsie's advice posted above and so far it works just fine. No problems that I can see.
Many thanks.
For my setup it works very nicely to just put my startups in .xprofile
. I'm guessing not all display managers read .xprofile
, but mine allows me to startup everything I need much the same as you would with .xinitrc
(lines like compton &
) even though I use a display manager. The Arch Wiki tells me that GDM, LightDM, LXDM, and SDDM all natively source .xprofile
.
I think we should open a Wiki for things like this. ๐