diff --git a/resources/niri-session b/resources/niri-session index 870f303b..19321e6f 100755 --- a/resources/niri-session +++ b/resources/niri-session @@ -77,15 +77,15 @@ elif hash dinitctl >/dev/null 2>&1; then fi # Create the directory for the logfile, if doesn't exist - mkdir --parents $HOME/.local/share/niri + mkdir --parents "$HOME/.local/share/niri" # Start niri dinitctl --quiet --user start niri.target 2>&1 # Wait for termination - dinit-monitor --user --initial -c $'sh -c " + dinit-monitor --user --initial -c 'sh -c " if [ "%s" = "stopped" ] || [ "%s" = "failed" ]; then ppid=$(ps -o ppid= -p $$) - kill $ppid + kill "$ppid" fi"' niri >/dev/null 2>&1 # Unset environment that we've set.