X-Git-Url: https://git.ralfj.de/bubblebox.git/blobdiff_plain/f0b992053c113a3575728bceb0444756a33d659d..9f759e738ebda4bc95c177c3d2206bb5481483bc:/bubblebox.py diff --git a/bubblebox.py b/bubblebox.py index 628107e..cb7f514 100644 --- 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): - flags = collect_flags(*flags) + if len(sys.argv) <= 1: + print(f"USAGE: {sys.argv[0]} ") + 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: