Re: there is no ~/.xsession file - what selects the DE to run?
Originally Posted by
halogen2
If I were doing this I would edit (or better, if possible, copy somewhere it would override the original and edit the copy) the /usr/share/xsessions/*.desktop files to point to a wrapper script that calls your script with the DE name as an argument, and after your script is done exec the command that was originally in said .desktop file. I'd have your script keep its own track of what DEs the user logs into.
how does one execute a .desktop file from a script? is executing what the Exec= line has good enough?
Originally Posted by
halogen2
Unless you also need this for non-GUI/tty sessions?
no.
Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer
Bookmarks