From 892af2f4ac32e4a3a962b724ca902e2cb145edfe Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Thu, 9 Apr 2026 10:08:24 +0100 Subject: [PATCH] Updated noctalia-cli to handle launch better --- dot_local/bin/executable_noctalia-cli | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dot_local/bin/executable_noctalia-cli b/dot_local/bin/executable_noctalia-cli index e58d5f1..6c3b683 100644 --- a/dot_local/bin/executable_noctalia-cli +++ b/dot_local/bin/executable_noctalia-cli @@ -1,9 +1,17 @@ #!/usr/bin/env bash -printf -v safe_args '%q ' "$@" +if [[ "$1" == "start" ]]; then + shift +fi if command -v qs >/dev/null 2>&1; then - exec qs -c "noctalia-shell $safe_args" + if [[ $# -gt 0 ]]; then + printf -v safe_args '%q ' "$@" + safe_args="${safe_args% }" + exec qs -c "noctalia-shell $safe_args" + else + exec qs -c "noctalia-shell" + fi else exec noctalia-shell "$@" fi