From 1f1a39d46c6b1e4e1757b3618decab4f83c5789a Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Thu, 18 Dec 2025 00:17:36 +0200 Subject: example/hyprland.desktop: install with full path in Exec --- CMakeLists.txt | 5 +++++ example/hyprland.desktop | 7 ------- example/hyprland.desktop.in | 7 +++++++ nix/default.nix | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) delete mode 100644 example/hyprland.desktop create mode 100644 example/hyprland.desktop.in diff --git a/CMakeLists.txt b/CMakeLists.txt index d3af715d..4298d7e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -575,6 +575,11 @@ install( \"\$ENV{DESTDIR}${CMAKE_INSTALL_FULL_BINDIR}/hyprland\" \ )") # session file +configure_file( + ${CMAKE_SOURCE_DIR}/example/hyprland.desktop.in + ${CMAKE_SOURCE_DIR}/example/hyprland.desktop + @ONLY +) install(FILES ${CMAKE_SOURCE_DIR}/example/hyprland.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/wayland-sessions) diff --git a/example/hyprland.desktop b/example/hyprland.desktop deleted file mode 100644 index c81e0216..00000000 --- a/example/hyprland.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Name=Hyprland -Comment=An intelligent dynamic tiling Wayland compositor -Exec=start-hyprland -Type=Application -DesktopNames=Hyprland -Keywords=tiling;wayland;compositor; diff --git a/example/hyprland.desktop.in b/example/hyprland.desktop.in new file mode 100644 index 00000000..e54fc99b --- /dev/null +++ b/example/hyprland.desktop.in @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Hyprland +Comment=An intelligent dynamic tiling Wayland compositor +Exec=@CMAKE_INSTALL_BINDIR@/start-hyprland +Type=Application +DesktopNames=Hyprland +Keywords=tiling;wayland;compositor; diff --git a/nix/default.nix b/nix/default.nix index 273e6b28..a6668fa5 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -97,7 +97,7 @@ in ../systemd ../VERSION (fs.fileFilter (file: file.hasExt "1") ../docs) - (fs.fileFilter (file: file.hasExt "conf" || file.hasExt "desktop") ../example) + (fs.fileFilter (file: file.hasExt "conf" || file.hasExt "in") ../example) (fs.fileFilter (file: file.hasExt "sh") ../scripts) (fs.fileFilter (file: file.name == "CMakeLists.txt") ../.) (optional withTests [../tests ../hyprtester]) -- cgit v1.2.3