You are not logged in.
Hello community. After a few days searching in many websites, I couldn't find an exact answer to this. Since the last SLiM update, it is using the "xsessions" directory instead of having to configure the slim.conf and the .xinitrc. That's good, but there's a problem: I have several DEs installed, and they seem to be sorted in an odd way by SLiM.
So, my question is: is there a way to set a default Xsession? Or to use the old method again? I tried switching to the old method but it doesn't seem to work properly anymore. The best info I found was a similar topic to this one (similar, but it doesn't say exactly if the OP had more than 1 DE/WM), and also the Wiki that has no information on setting defaults on 1.3.6-2 version.
Thanks in advanced.
Offline
Since slim accesses the sessions in alphabetical order, I symlinked my preferred session to _.desktop. It doesnt look like the existing codebase supports anything else.
# ln -s /usr/share/xsessions/{_,i3}.desktopOffline
Oops
Last edited by WorMzy (2013-11-04 17:59:43)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Since slim accesses the sessions in alphabetical order, I symlinked my preferred session to _.desktop. It doesnt look like the existing codebase supports anything else.
# ln -s /usr/share/xsessions/{_,i3}.desktop
A better option would be to use a number, such as
10-i3.desktopetc. As that is more readable, and you can easily assign priority.
Last edited by x33a (2013-11-04 18:12:47)
Offline
Would there be any reason for the sort order to be in reverse?
I have Openbox and DWM, but Openbox appears first as the default. The files in /usr/share/xsessions are just openbox.desktop and dwm.desktop.
The weird thing is that this only occurs on one machine (32-bit); the other (64-bit) sorts them just fine.
Offline
Would there be any reason for the sort order to be in reverse?
I guess SLiM does not sort the files at all, but lists the sessions in the order readdir() returns them (like ls -U)
I am half of the mind, that SLiM should not implement a sessio chooser at all. The session should be chosen after the login with a chooser in xinitrc. Each user can have not only the default sessions separated by desktop environment, but also custom sets of autostart applications e.g. for work, multimedia or networking.
Last edited by progandy (2013-12-16 06:50:11)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Yeah, that seems to be it. I tested it, and ls -U returns them in the same order as SLiM.
Sounds like you're talking about CDM. You could probably do what you want with a submenu for each option to choose the autostart programs. Just an idea. I tried CDM but I couldn't figure out how to get it to read my .xinitrc, where all my autostarting and settings get set up. Back to SLiM for now...
Just curious, how'd you know about readdir? Maybe I'm just not well versed in C++.
Offline
Sounds like you're talking about CDM. You could probably do what you want with a submenu for each option to choose the autostart programs. Just an idea. I tried CDM but I couldn't figure out how to get it to read my .xinitrc, where all my autostarting and settings get set up. Back to SLiM for now...
Not quite. I like a graphical login for my x sessions, so I keep slim and maybe a zenity radiolist in xinitrc. If I press Ctrl during login, the dialog will show, otherwise the default session will be run.
Just curious, how'd you know about readdir? Maybe I'm just not well versed in C++.
Don't assume anything. If the documentation does not state that the result is sorted in a specific way, treat it as unsorted. For directories and files, the name is somehow inserted into a storage structure. It may be a simple unsorted list, a tree, a hashtable, each with their own peculiar behaviour when listing its entries.
Last edited by progandy (2013-12-16 21:25:22)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline