feat(launch): start desktops without the login screen
The greeter only starts the session its own selector points at, so an installed environment with no open session could not be reached from the tool. Starting one needs a one-shot autologin drop-in, a display manager restart and a guaranteed cleanup, all as root: keep that in a small pkexec helper so the CLI and the GTK window stay unprivileged.
This commit is contained in:
11 files changed
+709
-38
No files matched your search
+8
-1
@@ -13,6 +13,7 @@ add_library(fws-core STATIC
|
||||
src/process.cpp
|
||||
src/session-catalog.cpp
|
||||
src/session-switcher.cpp
|
||||
src/session-launcher.cpp
|
||||
src/user-interface.cpp
|
||||
src/desktop-catalog.cpp
|
||||
)
|
||||
@@ -28,4 +29,10 @@ add_executable(fws-deskmanager-gui src/gui.cpp)
|
||||
target_link_libraries(fws-deskmanager-gui PRIVATE fws-core PkgConfig::GTK4)
|
||||
target_compile_options(fws-deskmanager-gui PRIVATE -Wall -Wextra -Wpedantic)
|
||||
|
||||
install(TARGETS fws-deskmanager fws-deskmanager-gui RUNTIME DESTINATION bin)
|
||||
# Only part of the tool that runs as root, and solely through pkexec.
|
||||
add_executable(fws-deskmanager-launch src/launch-helper.cpp)
|
||||
target_link_libraries(fws-deskmanager-launch PRIVATE fws-core)
|
||||
target_compile_options(fws-deskmanager-launch PRIVATE -Wall -Wextra -Wpedantic)
|
||||
|
||||
install(TARGETS fws-deskmanager fws-deskmanager-gui fws-deskmanager-launch
|
||||
RUNTIME DESTINATION bin)
|
||||
Reference in new issue
Block a user