mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-05 13:31:42 +01:00
Updated noctalia-cli to handle launch better
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
printf -v safe_args '%q ' "$@"
|
if [[ "$1" == "start" ]]; then
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
if command -v qs >/dev/null 2>&1; then
|
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
|
else
|
||||||
exec noctalia-shell "$@"
|
exec noctalia-shell "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user