Bug 502127 - Changing user in session when using GDM.
Summary: Changing user in session when using GDM.
Status: NEEDSINFO WAITINGFORINFO
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 6.3.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2025-03-28 13:16 UTC by Victor Ryzhykh
Modified: 2025-04-15 03:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Ryzhykh 2025-03-28 13:16:37 UTC
When using GDM instead of sddm in the system, the menu item "Power / Session - Switch User" does not work.
When I click the "Switch User" button I get this error.
org.kde.plasma.libkworkspace: Cannot switch user: XDG_SEAT_PATH not set

Operating System: ROSA Fresh Desktop 13
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.13.8-generic-2rosa13-x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 31.2 ГиБ of RAM
Graphics Processor: NVIDIA GeForce RTX 3050
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B250M-D3H
Comment 1 Victor Ryzhykh 2025-03-28 13:34:07 UTC
Session x11

$ journalctl -f
мар 28 16:31:56 rosa systemd[1]: user-0.slice: Consumed 1.818s CPU time, 94.9M memory peak.
мар 28 16:31:56 rosa systemd-logind[865]: Removed session 7.
мар 28 16:31:57 rosa audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
мар 28 16:31:57 rosa systemd[1]: systemd-hostnamed.service: Deactivated successfully.
мар 28 16:31:57 rosa audit: BPF prog-id=50 op=UNLOAD
мар 28 16:32:00 rosa konsole[22288]: kf.notifications: Playing audio notification failed: Destroyed
мар 28 16:32:02 rosa plasmashell[21972]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ItemGridView.qml:432: TypeError: Cannot read property 'itemIndex' of null
мар 28 16:32:02 rosa systemd[1636]: Started Konsole - Терминал.
мар 28 16:32:02 rosa konsole[22500]: QLayout: Cannot add a null widget to QHBoxLayout/
мар 28 16:32:03 rosa systemd[1636]: Started app-org.kde.konsole-22500.scope.
мар 28 16:32:11 rosa plasmashell[21972]: org.kde.plasma.libkworkspace: Cannot switch user: XDG_SEAT_PATH not set
мар 28 16:32:11 rosa plasmashell[21972]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ItemGridView.qml:432: TypeError: Cannot read property 'itemIndex' of null
мар 28 16:32:23 rosa dbus-daemon[857]: [system] Failed to activate service 'org.bluez': timed out (service_start_timeout=50000ms)
мар 28 16:32:23 rosa kded6[21943]: kf.bluezqt: PendingCall Error: "Failed to activate service 'org.bluez': timed out (service_start_timeout=50000ms)"
Comment 2 Victor Ryzhykh 2025-03-28 13:44:17 UTC
Session wayland

$ journalctl -f
мар 28 16:42:44 rosa audit: BPF prog-id=35 op=UNLOAD
мар 28 16:42:44 rosa audit: BPF prog-id=34 op=UNLOAD
мар 28 16:42:44 rosa audit: BPF prog-id=33 op=UNLOAD
мар 28 16:42:47 rosa plasmashell[1817]: kf.windowsystem: static void KX11Extras::forceActiveWindow(WId, long int) may only be used on X11
мар 28 16:42:48 rosa plasmashell[1817]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ItemGridView.qml:432: TypeError: Cannot read property 'itemIndex' of null
мар 28 16:42:48 rosa systemd[1599]: Started Konsole - Терминал.
мар 28 16:42:48 rosa konsole[2257]: libEGL warning: egl: failed to create dri2 screen
мар 28 16:42:48 rosa konsole[2257]: libEGL warning: egl: failed to create dri2 screen
мар 28 16:42:48 rosa konsole[2257]: QLayout: Cannot add a null widget to QHBoxLayout/
мар 28 16:42:48 rosa systemd[1599]: Started app-org.kde.konsole-2257.scope.
мар 28 16:42:53 rosa plasmashell[1817]: kf.windowsystem: static void KX11Extras::forceActiveWindow(WId, long int) may only be used on X11
мар 28 16:42:54 rosa plasmashell[1817]: org.kde.plasma.libkworkspace: Cannot switch user: XDG_SEAT_PATH not set
мар 28 16:42:54 rosa plasmashell[1817]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/ItemGridView.qml:432: TypeError: Cannot read property 'itemIndex' of null
Comment 3 Nate Graham 2025-03-28 23:39:56 UTC
This obviously isn't a supported setup. :) Is there anything to indicate it's a bug in our code, as opposed to a setup issue on your system or an unavoidable difference between SDDM and GDM?
Comment 4 Victor Ryzhykh 2025-03-29 00:31:28 UTC
Actually I don't know if it will be supported to work on kde6.
On kde5 it works.
That's why I first asked here https://invent.kde.org/plasma/plasma-workspace/-/issues/157
I was advised to open the error message.
I personally use sddm, but some people use GDM because it has the ability to configure exiting the screen lock using a smart card.
Comment 5 Victor Ryzhykh 2025-03-29 00:40:11 UTC
On the Rosa13 system there are kde5 and kde6 now.
On kde5 "Power / Session - Switch User" works.
On kde6 "Power / Session - Switch User" does not work.
Comment 6 Mikhail Novosyolov 2025-03-31 10:42:12 UTC
KDE 6 thinks that environmental variable XDG_SEAT_PATH must be set, but I have not found any XDG FreeDEsktop specification for it. However, LightDM and SDDM set it (https://codesearch.debian.net/search?q=XDG_SEAT_PATH&literal=1). I have patched GDM to also set this, this patch will be applied in ROSA (https://abf.io/import/gdm) and I have suggested it to GDM upstream: https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/280 

But I believe that KDE would better not rely on XDG_SEAT_PATH being set.
Comment 7 Bug Janitor Service 2025-04-15 03:46:51 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!