Skip to content
Snippets Groups Projects
Commit 8b3af5ff authored by Simon McVittie's avatar Simon McVittie
Browse files

pressure-vessel: Stop worrying about whether argv[1][0] is "-"


The reason we originally did this is that older versions of bwrap
didn't support the GNU-style "--" argument separator, used to
disambiguate between non-option arguments and strangely-named
executables that happened to start with a minus.

However, we now wrap our user-controlled "payload" command with pressure-vessel-adverb(1) in
all cases, which means we don't need this. bwrap's first non-option
argument is the absolute path to pressure-vessel-adverb, which
definitely does not start with "-" and so cannot be confused with an
option; and all of our own commands, notably pressure-vessel-adverb,
use GOptionContext and therefore support the "--" option-separator
correctly.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 2ffa6fb1
No related branches found
No related tags found
1 merge request!208Refactoring in preparation for Flatpak support
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment