Bug 286592

Summary: x11/sddm: Plasma Wayland, pressing "Ctrl+C" causes an automatic exit.
Product: Ports & Packages Reporter: Haowu Ge <gehaowu>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: New ---    
Severity: Affects Some People CC: cullum, gehaowu, kde, makc, mhorne
Priority: --- Flags: linimon: maintainer-feedback? (kde)
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
Log after CRT+C none

Description Haowu Ge 2025-05-05 05:26:20 UTC
Created attachment 260162 [details]
Log after CRT+C

My laptop is a ThinkPad X13 with an i5-10210U processor and I'm using the drm-61-kmod-6.1.128.1402000_2 driver. When I log in using Wayland mode, pressing "Ctrl+C" causes the system to automatically return to the SDDM interface. I'm not sure how to provide further debugging information.
Comment 1 Max Brazhnikov freebsd_committer freebsd_triage 2025-05-16 18:47:10 UTC
Upstream bug report: https://bugs.kde.org/479679
Comment 2 Max Brazhnikov freebsd_committer freebsd_triage 2025-05-21 08:22:58 UTC
(In reply to Max Brazhnikov from comment #1)
seems it is unrelated issue. Could you run Plasma from console, rather than from SDDM, and check for ctrl+c?
Comment 3 Cullum Smith 2025-05-21 18:56:22 UTC
The Ctrl+C issue appears to only manifest when starting Plasma from SDDM.

When I start it from the console using the following incantation, Ctrl+C works fine:

ck-launch-session /usr/local/lib/libexec/plasma-dbus-run-session-if-needed startplasma-wayland

But obviously not a very user-friendly solution :-)

I suspect this may have something to do with the fact that SDDM runs X11 at the same time Plasma runs Wayland. Perhaps there is some kind of conflict.

I was unable to get SDDM itself to run using Wayland (I last tried a few months ago).
Comment 4 Max Brazhnikov freebsd_committer freebsd_triage 2025-05-22 19:49:08 UTC
It is definitely some king of interplay between SDDM and Plasma Wayland.
For example, Wayfire is not affected by this. Moreover, the issue is not always reproducible with Plasma: after pressing some random keys Ctrl-C does not trigger session termination.
Comment 5 Haowu Ge 2025-05-23 00:45:55 UTC
(In reply to Cullum Smith from comment #3)

Thank you. 
After using ck-launch-session, Ctrl+C no longer exits.  
there is still an issue: right-clicking on the desktop causes the desktop process to exit (the screen displays black).
Do I need to submit a new bug ticket?
Comment 6 Haowu Ge 2025-05-23 00:51:36 UTC
(In reply to Haowu Ge from comment #5)

plasma_session