LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-21-2024, 04:42 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,334

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Stuck in KDE - Me of all people!


Most of you know how little time I have for kde, but as I was being bugged about the "full install" thing, I decided to try it, even if it meant installing kde.

So on a clean disk, I installed Current of 2024-04-20. I also installed the latest mate from slackware.uk. The good news is that all the polkit/elogind issues appear sorted. THE BAD NEWS is in the subject line - I'm stuck in kde. Things I tried:
  • Pointing the /etc/X11/xinit/xinitrc symlink at Mate instead of kde.
  • Resorting to the desparate measure of reading the Slackware docs, which said to run xwmconfig. I also set that.
Now the nuclear option (removepkg kde*, rm -rf, that sort of thing) suggests itself, but if kde can be made to do what it's told and go away, I'll be happy for the moment. It must go away. Help, please.

That said, I must concede kde is not as gruesome as it has looked previously. I'll even concede it appears to have sped up a little over the days when everything seemed to be started from a 1 Meg bash script, loaded with pause & wait instructions. Maybe it's just that my box is better. But has to go - and quickly.

Last edited by business_kid; 04-21-2024 at 05:01 AM.
 
Old 04-21-2024, 04:55 AM   #2
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,798

Rep: Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478
Do you use boot level 4 (SDDM)?
 
Old 04-21-2024, 05:13 AM   #3
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 502

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Did you run xwmconfig as root or as your regular user?

As root, xwmconfig changes the symlink in /etc/X11/xinit
As non-root, xwmconfig copies the xinitrc file from /etc/X11/xinit to the users directory - $HOME/.xinitrc.

If found, the file in $HOME is used instead of the global script. Unless you specifically made changes to your .xinitrc it is generally safe to delete it.

Or you are in runlevel 4 in which case disregard everything I said.
 
1 members found this post helpful.
Old 04-21-2024, 05:24 AM   #4
DryFalls
Member
 
Registered: Apr 2021
Posts: 43

Rep: Reputation: Disabled
And if in runlevel 4...
wait and wait for sddm to load and select in bottom panel
start xsession default.

Then your prior changes to xwmconfig/xinitrc will be honored.

From runlevel 3 startx should do the trick.
 
Old 04-21-2024, 06:49 AM   #5
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,072

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
If sddm is your login screen, you should be able to choose between kde, mate and xfce and afaik your choice will be stored when you login next.
 
Old 04-21-2024, 06:57 AM   #6
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,375

Rep: Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088Reputation: 4088
Quote:
Originally Posted by kgha View Post
If sddm is your login screen, you should be able to choose between kde, mate and xfce and afaik your choice will be stored when you login next.
Right
The mate-session-manager package places a mate.desktop file in /usr/share/xsessions
So you have it in the drop-down menu (sddm), and it can be selected through xwmconfig as well (as unprivileged user)

Last edited by marav; 04-21-2024 at 07:01 AM.
 
Old 04-21-2024, 09:51 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,334

Original Poster
Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Quote:
Originally Posted by Petri Kaukasoina View Post
Do you use boot level 4 (SDDM)?
T tried. I commented out the kdm session in /etc/rc.d/rc.4, but kde started. So I tried with pgrep for gdm, kdm, sddm, & xdm; Then 'pstree |more. But none of them are running! I only have sddm & xdm called, in that order. They're all I can find with 'which' too.

@DryFalls & @Pithium: Runlevel 3 now gets me Mate . I ran xwmconfig as user & root, and both had .xinitrc files, although neither were executable. They also had .xsession files (and backups).

@kgha: What you laid out is exactly how my previous install worked. But sddm is not staying running, So I don't have it as a login. sddm.bin appears to exit as soon as it starts an X session. Here's today's bit of /var/log/sddm.log
Mind you that was from runlevel 3 & startx. I was fiddling /etc/inittab, and the kde/plasma sessions were all on runlevel 4.

In summary,
  • Runlevel 3 --->Mate.
  • Runlevel 4 ---> kde & plasma .
but
Code:
dec@Ebony:~$ cat /etc/X11/xinit/xinitrc
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

[ -f $sysresources ] && xrdb -merge $sysresources
[ -f $sysmodmap ] && xmodmap $sysmodmap
[ -f $userresources ] && xrdb -merge $userresources
[ -f $usermodmap ] && xmodmap $usermodmap

export DESKTOP_SESSION="mate"
dbus-launch --exit-with-session mate-session
So,
  1. X is not obeying the files in /etc/X11./xinit/ or at least kde doesn't.
  2. sddm doesn't stay running so the session can't be chosen from there.

And my attempts to drag myself into the 21st century are going down in flames. I was attempting to use runlevel 4 & networkmanager but Protonvpn's driver requires systemd, and runlevel 4 keeps shoving kde in my face.

Last edited by business_kid; 04-21-2024 at 10:20 AM.
 
Old 04-21-2024, 09:55 AM   #8
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
After the first couple of boots on a new system I don't mess with either xinitrc or xwmconfig. I just boot to runlevel 3, login as root, and launch sddm. That may be partly influenced of being an old dog and new tricks, but I find it convenient to mess around with various work and play modes. I often start sessions in multi user cli to deal with nvidia driver installs, editing configs, and sunning various slackpkg+ functions. I don't reboot but every couple of days or longer and I enjoy the options with sddm for trying out Wayland progress and alternate WM/DEs.

Besides being a fun distraction, playing with different WM/DEs is also useful. For example trying out newer versions of Enlightenment led me to use some different apps in any WM/DE and caused me to choose Enlightenment as default on ARM devices. It also has a feature to switch from typical GUI to Tiling all within the same basic layout.

So if you always use Mate as your GoTo GUI, a one time setting from xwmconfig as root should solve the issue. If you enjoy playing around with options and quick switching, runlevel 3 and sddm might be a useful, fun experience.

Edit: Just saw your latest response, business_kid, and it looks like you have "/etc/inittab" set to default to runlevel 4 or have set auto login option. Maybe try defaulting to runlevel 3 at least until you get the events you like most. If auto login is set, you can check in KDE's System Settings under Startup and Shutdown and control login behaviour from there.

Last edited by enorbet; 04-21-2024 at 10:00 AM.
 
Old 04-21-2024, 10:34 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,334

Original Poster
Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Quote:
Originally Posted by enorbet
So if you always use Mate as your GoTo GUI, a one time setting from xwmconfig as root should solve the issue. If you enjoy playing around with options and quick switching, runlevel 3 and sddm might be a useful, fun experience
Thx for reply.

xwmconfig as root didn't solve the issue. I've been jumping around with runlevels only to test things. I can live in runlevel 3.

sddm doesn't stay running, so I have no choice there. On Current of 2024-04-20, I felt this was worth looking at.

I don't enjoy distro hopping or X session hopping. I enjoy knowing one well and being productive in it. I currently have a lot of half-assed window managers I look forward to deleting.
 
Old 04-21-2024, 01:01 PM   #10
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Quote:
Originally Posted by business_kid View Post
sddm doesn't stay running, so I have no choice there. On Current of 2024-04-20, I felt this was worth looking at.
I dare to differ. The SDDM stay running and you can chose which desktop session you want to use from its login screen (some list at bottom of the screen). Of course, this only IF your MATE put a convenient file into /usr/share/xsessions just like any other civilized Desktop Environment.

So, permit me to NOT believe that SDDM forces Plasma5 down on your throat.

Last edited by LuckyCyborg; 04-21-2024 at 01:45 PM.
 
4 members found this post helpful.
Old 04-21-2024, 05:47 PM   #11
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435Reputation: 4435
Actually, LuckyCyborg, KDE CAN cause SDDM to jump right to KDE BUT only if the User selects that option in System Settings. It defaults to User Select mode.
 
2 members found this post helpful.
Old 04-22-2024, 02:37 AM   #12
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,072

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
I'm a supporter of the "full install" policy even if I sometimes do remove stuff that's never used in my system - but then I know I can't complain when something goes wrong. KDE, however, is the exception and in my experience a slackware setup is perfectly stable with all KDE packages removed. Plus that one can relax and smile when those changelogs with 90+ of upgraded KDE packages appear...
 
Old 04-22-2024, 05:08 AM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,334

Original Poster
Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Quote:
Originally Posted by LuckyCyborg View Post
I dare to differ. The SDDM stay running and you can chose which desktop session you want to use from its login screen (some list at bottom of the screen). Of course, this only IF your MATE put a convenient file into /usr/share/xsessions just like any other civilized Desktop Environment.

So, permit me to NOT believe that SDDM forces Plasma5 down on your throat.
I tested this.
I set runlevel 4 in /etc/inittab. I edited /etc/rc.d/rc.4 & commented out the other options, so sddm starts, or it errors out. /usr/share/xsessions looks like this.
Code:
dec@Ebony:~$ ls /usr/share/xsessions
mate.desktop	wmaker.desktop	xwmconfig.desktop
plasma.desktop	xfce.desktop	z_plasma-safe.desktop
dec@Ebony:~$
It is my sad duty to inform you that this reply was written from the extreme discomfort of KDE . I'll take the appropriate files out of /usr/share/xsessions and give it one more reboot.

@kgha: I couldn't compile polkit or elogind without adding stuff - auditd for elogind. Somebody gave me the 'full install' lecture, and claimed he compiled it 'no trouble.' I never know if these are compile-time or run-time dependencies, so the kitchen sink went in this time. I left out only e/ & f/. But I've still no auditd . It's good to know that kde isn't holding hidden treasure that makes compiling possible.

@enorbet: Your comment raised another issue. I never got to 'user select' mode in sddm. It exits before that.

Going back to try one more reboot with the kde stuff out of /usr/share/xsessions which I'll mention in an edit.

EDIT: Well, still in runlevel 4, I moved the plasma desktop files out of usr/share/xsessions and rebooted. Plasma's opening screen came up, giving me that funny, familiar,sickening feeling of kde. But the mate session actually started! I'm at a loss for words. I even have the Irish keyboard layout back. KDE insisted on enforcing an en_US one. That has weird effects: @ & " are swapped, and \, #,~,|,& ¬ are all messed up. ¬ is actually gone, as is € and all the tweaks I put in the Irish setup.

Last edited by business_kid; 04-22-2024 at 05:25 AM.
 
Old 04-22-2024, 05:41 AM   #14
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,798

Rep: Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478Reputation: 1478
In the SDDM login screen, at the left bottom corner, which 'Desktop Session' have you selected?
 
Old 04-22-2024, 06:18 AM   #15
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,024

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
SDDM has an auto-login option. I think the OP himself configured SDDM for auto-login in KDE, from what he explains.

Code:
[Autologin]
# Whether sddm should automatically log back into sessions when they exit
Relogin=false

# Name of session file for autologin session (if empty try last logged in)
Session=

# Username for autologin session
User=
I suggest replacing /etc/sddm.conf with the stock file from the package and deleting (if it exists) the directory: /etc/sddm.conf.d
 
  


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
How can I get people to use Linux? I'm bad at converting people over. Mr. Hill Linux - Newbie 50 07-11-2020 10:41 AM
Can we have an glossary of initials people use? It would be very useful to people new to Linux MeurigP LinuxQuestions.org Member Intro 1 05-01-2020 12:26 PM
Drive stuck, how to I un-stuck it. MikeyCarter Linux - Software 3 08-05-2009 11:57 AM
I'm Stuck, so Stuck. basttrax Linux - General 3 11-14-2003 09:59 PM
Please help Slackware people! I'm stuck. lostboy Slackware 7 04-09-2003 10:41 PM

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

All times are GMT -5. The time now is 11:51 AM.

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