Stuck in IceWM cannot get back to KDE.

So today I accidentally broke KDE Plasma. I tried fixing it by reverting usign snapshots but that didn’t work at all and now I’m in Ice WM. I tried uninstalling and installing KDE back but that didn’t work.
I also do not have KDE in the login screen. I tried also changing the alternatives in the YaST alternatives but that didn’t chgange anything.

As far as I know, plasma should be selectable on the login screen based on the presence of “/usr/share/xsessions/plasma5.desktop”.

But perhaps you were switched to “xdm” for the login screen, and that probably doesn’t give choices. If that’s the problem, then you need to revert to using “sddm” with

update-alternatives --config default-displaymanager

I’ve switched to sddm and the only options there are IceWM and TWM.

I assume that by the “I tried uninstalling and installing KDE back” you managed to let the system forget it is available. But as details on what you did fail, I assume people can not say much about that.
I assume you must explain much more about what you exactly did.

Okay I’m gonna go from the beggining.
Everything started when linux asked me if I want to remove 150 packages while I was trying to make mp4 videos work.
And me unknowingly pressed yes. And then KDE started breaking. After that I reverted in YaST to fix KDE then restarted and ended up in this windows XP desktop thing.
Then I went into YaST software manager and unchecked the big KDE boxes. (Not everything on the right just the big ones on the left side). Then installed again. Restarted. And this desktop still exists.

Still vague enough :(.

Let us start with a list of repos:

zypper lr -d

#  | Alias                                | Name                               | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                            | Service
---+--------------------------------------+------------------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------------------------------+--------
 1 | Sauerland-update                     | Sauerland-update                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUSE_Leap_15.2_Update | 
 2 | brave-browser                        | brave-browser                      | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://brave-browser-rpm-release.s3.brave.com/x86_64/                                         | 
 3 | https-download.opensuse.org-7fbf8aa2 | system:packagemanager              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/system:/packagemanager/openSUSE_Leap_15.2/          | 
 4 | openSUSE-Leap-15.2-1                 | openSUSE-Leap-15.2-1               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                                  | 
 5 | packman                              | packman                            | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/                            | 
 6 | packman-essentials                   | packman-essentials                 | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.0/Essentials                   | 
 7 | repo-debug                           | Debug Repository                   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/                            | 
 8 | repo-debug-non-oss                   | Debug Repository (Non-OSS)         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/                        | 
 9 | repo-debug-update                    | Update Repository (Debug)          | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/oss/                                       | 
10 | repo-debug-update-non-oss            | Update Repository (Debug, Non-OSS) | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                                   | 
11 | repo-non-oss                         | Non-OSS Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/                              | 
12 | repo-oss                             | Main Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                                  | 
13 | repo-source                          | Source Repository                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/                           | 
14 | repo-source-non-oss                  | Source Repository (Non-OSS)        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/                       | 
15 | repo-update                          | Main Update Repository             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss                                              | 
16 | repo-update-non-oss                  | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/                                         | 
17 | teams                                | teams                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://packages.microsoft.com/yumrepos/ms-teams                                               | 
18 | vscode                               | vscode                             | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://packages.microsoft.com/yumrepos/vscode                                                 | 


You have the wrong Packman Essentials (#6) repo. It is a 15.0 one. But you have already Packman complete (#5), thus you can remove it.

And what is that packagemanager repo for?

#4 and #12 are the same. Remove one (maybe #4).

A bit of a mess isn’t it?

Alright removed those. Now how do I get KDE Plasma back?

I hope your repo list is correct now (you did not present us the new version for inspection).

As I have no idea what you exactly did (and you do not know either), I can only suggest things.

You could use YaST > Software > Software Management, use the Pattern view, check the KDE pattern and see if all that belongs to it is installed.


#  | Alias                     | Name                               | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                                            | Service
---+---------------------------+------------------------------------+---------+-----------+---------+----------+--------+------------------------------------------------------------------------------------------------+--------
 1 | Sauerland-update          | Sauerland-update                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://download.opensuse.org/repositories/home:/Sauerland:/hardware/openSUSE_Leap_15.2_Update | 
 2 | brave-browser             | brave-browser                      | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://brave-browser-rpm-release.s3.brave.com/x86_64/                                         | 
 3 | packman                   | packman                            | Yes     | (r ) Yes  | Yes     |   90     | rpm-md | https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.2/                            | 
 4 | repo-debug                | Debug Repository                   | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/                            | 
 5 | repo-debug-non-oss        | Debug Repository (Non-OSS)         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/                        | 
 6 | repo-debug-update         | Update Repository (Debug)          | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/oss/                                       | 
 7 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS) | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/                                   | 
 8 | repo-non-oss              | Non-OSS Repository                 | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/                              | 
 9 | repo-oss                  | Main Repository                    | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/                                  | 
10 | repo-source               | Source Repository                  | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/                           | 
11 | repo-source-non-oss       | Source Repository (Non-OSS)        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/                       | 
12 | repo-update               | Main Update Repository             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss                                              | 
13 | repo-update-non-oss       | Update Repository (Non-Oss)        | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/                                         | 
14 | teams                     | teams                              | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | https://packages.microsoft.com/yumrepos/ms-teams                                               | 
15 | vscode                    | vscode                             | Yes     | (r ) Yes  | No      |   99     | rpm-md | https://packages.microsoft.com/yumrepos/vscode                                                 | 


In the software in the main KDE Plasma 5 everything is installed.
And in the KDE apps most are installed. But not all.
And The PIM Suite is fully installed.

Ok, I started searching through docs and the like.
It seems that /usr/share/xsessions/ contains the sessions possible. Thus please show

ls -l /usr/share/xsessions/

total 16
lrwxrwxrwx 1 root root   42 Dec 10 09:37 default.desktop -> /etc/alternatives/default-xsession.desktop
-rw-r--r-- 1 root root 2498 Sep  3  2020 icewm.desktop
lrwxrwxrwx 1 root root   13 Sep  3  2020 icewm-session.desktop -> icewm.desktop
-rw-r--r-- 1 root root 2145 May 16  2020 twm.desktop

First a remark about posting CODE. Please add the prompt/command line before the output and the new prompt at the end of the output together with the output between the CODE tags. It provides readers with much extra informatiom like: who did it (root or user), where was (s)he (working directory), what exactly was the command given, it is complete. You will raise the trust in what you post considerable. The only extra you have to do is to make the copy/paste two lines larger.

Then:
I have

boven:/usr/share/xsessions # ls -l
total 16
lrwxrwxrwx 1 root root   42 Dec 10 09:37 default.desktop -> /etc/alternatives/default-xsession.desktop
lrwxrwxrwx 1 root root   13 Sep  3  2020 icewm-session.desktop -> icewm.desktop
-rw-r--r-- 1 root root 2498 Sep  3  2020 icewm.desktop
lrwxrwxrwx 1 root root   15 Dec 10 09:38 kde-plasma.desktop -> plasma5.desktop
-rw-r--r-- 1 root root 2529 Dec 10 09:33 plasma5.desktop
-rw-r--r-- 1 root root 2145 May 16  2020 twm.desktop
-rw-r--r-- 1 root root   83 May 16  2020 xsession.desktop
boven:/usr/share/xsessions # 

As you can see all mentioning of KDE/Plasma is failing in yours. I think we have something here.

My next homework was to find out which package provides the file /usr/share/xsessions/plasma5.desktop. I used YaST > Software > Software Managemnt for it; the Search and the Files item checked. It is plsma5-session. Thus my advice to try to force install this anew:

zypper in -f plasma5-session

Previously I was sending the logs using

Command >> File

But now I know how to copy from xterm.


elperson@pc-2469:~> sudo zypper in -f plasma5-session
Loading repository data...
Reading installed packages...
Forcing installation of 'plasma5-session-5.18.6-lp152.3.3.1.noarch' from repository 'Main Update Repository'.
Resolving package dependencies...

The following package is going to be reinstalled:
  plasma5-session

1 package to reinstall.
Overall download size: 107.5 KiB. Already cached: 0 B. No additional space will
be used or freed after the operation.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package plasma5-session-5.18.6-lp152.3.3.1.noarch
                                           (1/1), 107.5 KiB ( 66.1 KiB unpacked)
Retrieving: plasma5-session-5.18.6-lp152.3.3.1.noarch.rpm ................[done]

Checking for file conflicts: .............................................[done]
(1/1) Installing: plasma5-session-5.18.6-lp152.3.3.1.noarch ..............[done]
Additional rpm output:
update-alternatives: using /usr/share/xsessions/plasma5.desktop to provide /usr/share/xsessions/default.desktop (default-xsession.desktop) in auto mode



NIce that the installtion worked, but what are the results? How looks /usr/share/xsessions ???

Plasma is there.


Script started on 2021-03-29 20:14:49+02:00 [TERM="xterm" TTY="/dev/pts/1" COLUMNS="80" LINES="57"]
e7e]2;elperson@localhost.localdomain:~ae]1;localhost.localdomainae8elperson@pc-2469:~> ls /urse[Ke[Ksr/shaee[Krex/e[Ke[Ke[Ke/se[Kxsessions
e[0me[00;36mdefault.desktope[0m  e[00;36micewm-session.desktope[0m  e[00mplasma5.desktope[0m
e[00micewm.desktope[0m    e[00;36mkde-plasma.desktope[0m     e[00mtwm.desktope[0m
e7e]2;elperson@localhost.localdomain:~ae]1;localhost.localdomainae8elperson@pc-2469:~> exit
exit

Script done on 2021-03-29 20:15:06+02:00 [COMMAND_EXIT_CODE="0"]

I am not sure what the code is you post, but I get the message that the problem is solved. Congratulations.

Hmm well I rebooted and not quite. I still do not see plasma in the env and I’m still in this ugly icewm DE.

Well I still cannot get into KDE.
My default xsession is plasma.


elperson@pc-48:~> sudo update-alternatives --list default-displaymanager
[sudo] password for root: 
/usr/lib/X11/displaymanagers/console
/usr/lib/X11/displaymanagers/lightdm
/usr/lib/X11/displaymanagers/sddm ( the one I have selected )
/usr/lib/X11/displaymanagers/xdm
elperson@pc-48:~>