feat(session): switch desktop environments through logind sessions
Activate the target graphical session instead of rebooting, so a KDE or GNOME session stays alive while another one is used. Switching relies on logind VT activation, which needs no root privileges and never restarts the display manager.
This commit is contained in:
11 files changed
+883
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace fws {
|
||||
|
||||
// Switches the seat to the given logind session (VT activation).
|
||||
bool activateSession(const std::string& sessionId, std::string& error);
|
||||
|
||||
// Returns to the display manager greeter without rebooting.
|
||||
bool switchToGreeter(std::string& error);
|
||||
|
||||
} // namespace fws
|
||||
Reference in new issue
Block a user