Bug 464045 - startkde on systemd: safeguard against already started plasma session in another user session
Summary: startkde on systemd: safeguard against already started plasma session in anot...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (show other bugs)
Version: 5.25.5
Platform: Other Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-09 11:42 UTC by mike
Modified: 2023-01-09 22:49 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 mike 2023-01-09 11:42:01 UTC
systemd allowes only one graphical-session.target per user, not per session. This will not change and is by design (never mind that it is called -session, not -user)

a clean and easy way might be checking if graphical-session.target is already running before starting QStringLiteral("plasma-workspace-%1.target").arg(platform)


STEPS TO REPRODUCE
1) run startplasma-wayland or startx that launches startplasma-x11 on a tty/VT
2) do the same on another tty/VT

OBSERVED RESULT
The second session does not start, instead only a black screen is shown

EXPECTED RESULT
Output a message that says that there is already a graphical session running and thus the start of another session is prohibited

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.10
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-26-generic (64-bit)
Graphics Platform: X11