LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-19-2020, 08:17 AM   #1
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 280

Rep: Reputation: 100Reputation: 100
Default WM and SDDM


Hello everyone,

I am feeling stupid...
I found some issues about SDDM and X login process here but not mine.

Since the -current upgrade which merge Ktown or the next one, if I run init4, I can not use another WM than KDE or Xfce, because there is a menu for Xfce.
To run fluxbox, I had to boot on init3 and launched X.

First, I checked user's .xinitrc and .xsession, they still use fluxbox.
Then I checked /etc/X11/xinit and xinitrc still links to xinitrc.fluxbox. Great.
So I have almost gone crazy...

/usr/share/sddm/scripts/Xsession contains this code :
Code:
# Commented out because $HOME/.xsession may start the wrong session type or
# cause dbus-run-session to start twice.
#if [ -f "$USERXSESSION" ]; then
#  . "$USERXSESSION"
#fi
Which seems to explain the whole thing, as user's .xession is not used.

As a workaround I wrote fluxbox.desktop into /usr/share/xsessions, so fluxbox session is available into SDDM menu and allows to use fluxbox as WM.

My question is : is /etc/X11/xinit/xinitrc or user's .xsession and .xinitrc useless now ?
Do I miss something else ?

Thank you

NB: this is a fresh install with -current as source.
 
Old 12-19-2020, 08:31 AM   #2
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Quote:
Originally Posted by lougavulin View Post
My question is : is /etc/X11/xinit/xinitrc or user's .xsession and .xinitrc useless now ?
The thing is .xinitrc should be used with 'startx' and .xsession with 'xdm' while you have here a 'sddm' so..
Since I don't intend to use a 'sddm' then no, I don't think .xinitrc or .xsession are useless.
Arguably, if xdm can't use an .xsession then xdm is useless and must be recompiled, but that's just my point of view I guess.
 
Old 12-19-2020, 11:31 AM   #3
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 280

Original Poster
Rep: Reputation: 100Reputation: 100
Thank you.

As /usr/bin/gdm, /usr/sbin/gdm, /opt/kde/bin/kdm or /usr/bin/kdm doesn't exist anymore on -current, rc.4 will launch SDDM by default. That means we can't launch any other WM than KDE or Xfce as is.
To launch /usr/bin/xdm, we have to use /etc/rc.d/rc.4.local, which is another way to solve my issue.

May be willing to launch Fluxbox from SDDM make no sense.
 
Old 12-21-2020, 07:17 AM   #4
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Quote:
Originally Posted by lougavulin View Post
As /usr/bin/gdm, /usr/sbin/gdm, /opt/kde/bin/kdm or /usr/bin/kdm doesn't exist anymore on -current, rc.4 will launch SDDM by default. That means we can't launch any other WM than KDE or Xfce as is.
No it does not, what evidence you have to support that claim? It only means you may have to change one line in rc.4 in the future.
However, on DW page it clearly says:
Quote:
Desktop: Blackbox, Fluxbox, FVWM, KDE, WMaker, Xfce
So the distribution clearly supports other desktops and not just KDE and XFCE.
And further below:
Quote:
Category: Desktop, Server
Which means SDDM is 100%% optional until the distribution no longer fits the server category, as it makes no sense to have a SDDM on a server.
 
Old 12-21-2020, 05:29 PM   #5
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 280

Original Poster
Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by elcore View Post
No it does not, what evidence you have to support that claim? It only means you may have to change one line in rc.4 in the future.
However, on DW page it clearly says:
I am trying to be more clear on what I meant.
I did not say that you could not launch another WM at all. I even let know 2 ways to do so. As creating /etc/rc.d/rc.4.local, which was just the line under your quote... I just meant, by default, you have to look for modification to be able to launch other WM, things you did not have to look for with KDM for example, it was there.
And the way to launch other WM are, how to say, not «easy».
- I knew /etc/rc.d/rc.4.local because I read /etc/rc.d/rc.4.
- I found out /usr/share/xsessions/fluxbox.desktop by reading scripts and config files.
- The only obvious one, not for everyone but still more well known I guess, is to boot in init3 and launch X.

After this as I said
Quote:
May be willing to launch Fluxbox from SDDM make no sense.
I do not know...
 
Old 12-21-2020, 10:56 PM   #6
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Quote:
Originally Posted by lougavulin View Post
- I knew /etc/rc.d/rc.4.local because I read /etc/rc.d/rc.4.
Got this part, apparently in -current you have to account for upstream changes and updates to rc.4 which simply don't happen in stable release.
Over here I'd write changes directly to rc.4 because it's not the kind of thing that gets security updates or new features after the point release.

What I didn't get at first is where exactly is the problem, I mean if startx can use .xinitrc, xdm can use .xsession and sddm can use .desktop file ..
Now it's rather obvious to me that relevant .desktop file for launching fluxbox via sddm appears to be missing by default and that looks like a bug.
 
Old 12-22-2020, 07:43 AM   #7
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Interesting. I wonder if slackbuilds.org maintainers of alternative wm are aware of that for their doinst.sh
 
  


Reply



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] SDDM vs KDM and fast user switching within KDE not working? bamunds Slackware 12 02-28-2019 11:39 AM
[SOLVED] sddm-helper segfault after upgrading to kde5 ( and -current ) Pigi_102 Slackware 9 10-16-2018 08:18 AM
Anyone use sddm and actually get auto login to work? Timothy Miller Arch 3 01-18-2015 02:34 PM
SDDM, KDM and LXDM in Fedora 20 Jam/KDE spin 64bit Zyblin Fedora 1 12-04-2013 01:06 PM

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

All times are GMT -5. The time now is 10:17 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