diff options
Diffstat (limited to 'src/caelestia/subcommands/shell.py')
| -rw-r--r-- | src/caelestia/subcommands/shell.py | 5 |
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) |