projects
/
bubblebox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add --new-session flag
[bubblebox.git]
/
bubblebox.py
diff --git
a/bubblebox.py
b/bubblebox.py
index 628107e589930ed1018b74aeba5afbd20143fff2..cb7f5140148cfb52b091c66a2a80670e17228711 100644
(file)
--- a/
bubblebox.py
+++ b/
bubblebox.py
@@
-61,7
+61,11
@@
def collect_flags(*flags):
# Run the application in the bubblebox with the given flags.
def bubblebox(*flags):
# Run the application in the bubblebox with the given flags.
def bubblebox(*flags):
- flags = collect_flags(*flags)
+ if len(sys.argv) <= 1:
+ print(f"USAGE: {sys.argv[0]} <program name> <program arguments>")
+ sys.exit(1)
+ # Make sure `--die-with-parent` is always set.
+ flags = collect_flags(bwrap_flags("--die-with-parent"), *flags)
bwrap = "/usr/bin/bwrap"
extraflags = []
if flags.dbus_proxy_flags:
bwrap = "/usr/bin/bwrap"
extraflags = []
if flags.dbus_proxy_flags: