summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-09 00:23:57 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-09 00:23:57 +1000
commit696899a0be9b437bad5890f8e0ebbe085f837a33 (patch)
treeecf9557b9db44214fdde76216ae68becdaad18f4
parentMerge pull request #3 from PiotrekB416/fix/hardcoded-interpreters (diff)
downloadcaelestia-cli-696899a0be9b437bad5890f8e0ebbe085f837a33.tar.gz
caelestia-cli-696899a0be9b437bad5890f8e0ebbe085f837a33.tar.bz2
caelestia-cli-696899a0be9b437bad5890f8e0ebbe085f837a33.zip
shell: prevent duplicate instances
-rwxr-xr-xmain.fish6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.fish b/main.fish
index 5e0556c..7522540 100755
--- a/main.fish
+++ b/main.fish
@@ -7,7 +7,11 @@ set -l src (dirname (realpath (status filename)))
if test "$argv[1]" = shell
# Start shell if no args
if test -z "$argv[2..]"
- $C_DATA/shell/run.fish
+ if qs list --all | grep "Config path: $C_DATA/shell/shell.qml" &> /dev/null
+ warn 'Shell already running'
+ else
+ $C_DATA/shell/run.fish
+ end
else
if test "$argv[2]" = help
qs -p $C_DATA/shell ipc show