LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-17-2016, 11:44 AM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 10,026

Rep: Reputation: Disabled
How-to list all WMs in lxdm


I have installed lxdm on top of a a full Slackware/Slint 14.2, using the SlackBuild from ponce aka Matteo Bernardini, found on SBo.

The greeter only shows the "real" desktops (KDE, Xfce and Mate here) in addition to the default.

How can I get it to display also e.g. Fluxbox, WindowMaker and BlackBox?
 
Old 09-17-2016, 01:51 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 6,222

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
lxdm lists what it finds in /usr/share/xsessions so I suppose it should be sufficient to create some equivalent files based on the examples there.
for example, to list Fluxbox a file /usr/share/xsessions/fluxbox.desktop
Code:
[Desktop Entry]
Name=fluxbox
Comment=The Fluxbox window manager
Exec=startfluxbox
TryExec=startfluxbox
Type=Application
X-LightDM-DesktopName=fluxbox
DesktopNames=fluxbox
should suffice.
 
2 members found this post helpful.
Old 09-17-2016, 02:55 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 10,026

Original Poster
Rep: Reputation: Disabled
Thanks a lot Matteo, that did the trick!

Being lazy I did this:

Code:
cp /usr/share/apps/kdm/sessions/blackbox.desktop /usr/share/xsessions
and so on for fluxbox, fvwm and wmaker, so I didn't have to write the .desktop files.

FYI I will also configure lxpanel (with wm-logout as logout command) for all windows managers, for consistency. This seems to work at runlevel 3 as well.

This way the user will be able to logout/hibernate/suspend/shutdown/reboot the same way from all WMs

Last edited by Didier Spaier; 09-17-2016 at 06:29 PM.
 
Old 09-17-2016, 09:52 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,669

Rep: Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216
Quote:
cp /usr/share/apps/kdm/sessions/blackbox.desktop /usr/share/xsessions
Actually, I do not think that is sufficient, as the default *.desktop files for FVWM, Windowmaker, TWM, MWM and Blackbox all need to be edited to point to startup scripts to set the DBUS_SESSION_BUS_ADDRESS variable. http://www.linuxquestions.org/questi...1/#post5532827
 
1 members found this post helpful.
Old 09-18-2016, 02:46 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 10,026

Original Poster
Rep: Reputation: Disabled
@allend:
Thanks for pointing this out.

However, when using lxdm instead of kdm Thunar does automount USB sticks in fwm2, blackbox and WindowMaker using the unmodified .desktop files intended for kdm.

That's one more reason to set lxdm as default display manager in Slint (the other one being that the system can be rebooted or shutdown directly from lxpanel thanks to wm-logout, thus there is no need to duplicate these functions in the display manager: see its window on the right of the preferences of lxpanel in the attached pic).

PS: I now see that you can reboot and shutdown from lxdm as well... Anyway the ability to do that with a GUI in both runlevels 3 and 4 is nice to have and I prefer lxdm over kdm and xdm

Oh, and the pic is under blackbox.
Attached Thumbnails
Click image for larger version

Name:	wm-logout.jpg
Views:	48
Size:	263.9 KB
ID:	23050  

Last edited by Didier Spaier; 09-18-2016 at 03:02 PM. Reason: PS added.
 
1 members found this post helpful.
Old 09-18-2016, 08:00 PM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 5,669

Rep: Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216Reputation: 2216
Quote:
However, when using lxdm instead of kdm Thunar does automount USB sticks in fwm2, blackbox and WindowMaker using the unmodified .desktop files intended for kdm.
Interesting - That makes the operation of lxdm different to that of kdm.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LXDM installed but no /usr/bin/lxdm G-Known Slackware 2 12-16-2015 08:20 AM
[SOLVED] Suspend on LXDM - Solved addr7 Linux - Software 3 10-23-2015 12:21 PM
LXDM Bertman123 Slackware 3 04-04-2015 10:55 PM
Background for LXDM and in Fluxbox RAFAL Linux - Desktop 11 09-22-2013 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration