mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-04 21:21:50 +01:00
Updated noctalia-cli to handle launch better
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user