summaryrefslogtreecommitdiff
path: root/src/caelestia/subcommands/shell.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 22:21:12 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-17 22:21:12 +1000
commit83148d9351e2ffe0751151388d431482fd850796 (patch)
tree3a070c97252b8289570d2e5033fbfde33f6ca6bb /src/caelestia/subcommands/shell.py
parentscheme: dump scheme data when no args to list (diff)
downloadcaelestia-cli-83148d9351e2ffe0751151388d431482fd850796.tar.gz
caelestia-cli-83148d9351e2ffe0751151388d431482fd850796.tar.bz2
caelestia-cli-83148d9351e2ffe0751151388d431482fd850796.zip
shell: no duplicate + daemon option
Diffstat (limited to '')
-rw-r--r--src/caelestia/subcommands/shell.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/caelestia/subcommands/shell.py b/src/caelestia/subcommands/shell.py
index 11c979c..e8017fe 100644
--- a/src/caelestia/subcommands/shell.py
+++ b/src/caelestia/subcommands/shell.py
@@ -20,7 +20,10 @@ class Command:
self.message(*self.args.message)
else:
# Start the shell
- subprocess.Popen(["qs", "-c", "caelestia"]).wait()
+ args = ["qs", "-n", "-c", "caelestia"]
+ if self.args.daemon:
+ args.append("-d")
+ subprocess.run(args)
def shell(self, *args: list[str]) -> str:
return subprocess.check_output(["qs", "-c", "caelestia", *args], text=True)