feat(gui): manage desktop environments from a gtk window

Offer a single window to install and switch between XFCE, GNOME, Plasma,
Hyprland and i3. Installation goes through pkexec and pacman, switching
uses logind sessions, so neither action requires a reboot.
This commit is contained in:
BlackAngelTV committed 2026-11-04 13:16:44 +01:00
1 parent 7187396be3
commit b22ac8ab37
4 files changed
+487 -12

No files matched your search

+16 -12
View File
@@ -1,27 +1,31 @@
cmake_minimum_required(VERSION 3.20)
project(FWS-DeskManager VERSION 0.1.0 LANGUAGES CXX)
project(FWS-DeskManager VERSION 0.2.0 LANGUAGES CXX)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
message(FATAL_ERROR "FWS-DeskManager targets Linux with systemd-logind.")
endif()
add_executable(fws-deskmanager
src/main.cpp
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK4 REQUIRED IMPORTED_TARGET gtk4)
add_library(fws-core STATIC
src/process.cpp
src/session-catalog.cpp
src/session-switcher.cpp
src/user-interface.cpp
src/desktop-catalog.cpp
)
target_include_directories(fws-core PUBLIC src)
target_compile_features(fws-core PUBLIC cxx_std_17)
target_compile_options(fws-core PRIVATE -Wall -Wextra -Wpedantic)
set_target_properties(fws-deskmanager PROPERTIES
OUTPUT_NAME "fws-deskmanager"
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
target_include_directories(fws-deskmanager PRIVATE src)
add_executable(fws-deskmanager src/main.cpp)
target_link_libraries(fws-deskmanager PRIVATE fws-core)
target_compile_options(fws-deskmanager PRIVATE -Wall -Wextra -Wpedantic)
install(TARGETS fws-deskmanager RUNTIME DESTINATION bin)
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)