diff --git a/example/hyprland.desktop.in b/example/hyprland.desktop.in index e54fc99b2..d8e87d60e 100644 --- a/example/hyprland.desktop.in +++ b/example/hyprland.desktop.in @@ -1,7 +1,7 @@ [Desktop Entry] Name=Hyprland Comment=An intelligent dynamic tiling Wayland compositor -Exec=@CMAKE_INSTALL_BINDIR@/start-hyprland +Exec=@PREFIX@/@CMAKE_INSTALL_BINDIR@/start-hyprland Type=Application DesktopNames=Hyprland Keywords=tiling;wayland;compositor; diff --git a/nix/default.nix b/nix/default.nix index a6668fa5c..547768711 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -108,8 +108,9 @@ in # Fix hardcoded paths to /usr installation sed -i "s#/usr#$out#" src/render/OpenGL.cpp - # Remove extra @PREFIX@ to fix pkg-config paths + # Remove extra @PREFIX@ to fix some paths sed -i "s#@PREFIX@/##g" hyprland.pc.in + sed -i "s#@PREFIX@/##g" example/hyprland.desktop.in ''; env = {