hyprland: launch through start wrapper

This commit is contained in:
2026-05-03 00:01:07 -07:00
parent 6cb3415987
commit 5cdea7dd1a
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@
printf '%s\n' \
'#!${pkgs.runtimeShell}' \
'config_path="''${XDG_CONFIG_HOME:-$HOME/.config}/hypr/hyprland.lua"' \
'exec "${package}/bin/Hyprland" --config "$config_path" "$@"' \
'exec "${package}/bin/start-hyprland" --path "${package}/bin/Hyprland" -- --config "$config_path" "$@"' \
> "$out/bin/start-hyprland-lua"
chmod +x "$out/bin/start-hyprland-lua"

View File

@@ -117,7 +117,7 @@ let
After = [ "default.target" ];
};
Service = {
ExecStart = "${hyprlandPackage}/bin/Hyprland --socket ${cfg.socket} --config ${remoteHyprlandConfig}";
ExecStart = "${hyprlandPackage}/bin/start-hyprland --path ${hyprlandPackage}/bin/Hyprland -- --socket ${cfg.socket} --config ${remoteHyprlandConfig}";
Restart = "on-failure";
RestartSec = 5;
Environment = [