在终端中,我确实喜欢这样并且工作正常:
$startx google-chrome-stable
Run Code Online (Sandbox Code Playgroud)
它可以很好地调出 chrome(仅作为示例)。但假设我想处理一些争论:
$startx google-chrome-stable -incognito
Run Code Online (Sandbox Code Playgroud)
它失败了,因为它认为-incognito这是 startx 而不是 chrome 的参数。
解决办法是什么?
使用以下命令
startx google-chrome-stable -incognito --
Run Code Online (Sandbox Code Playgroud)
从man startx
The special argument '--' marks the end of client arguments and the
beginning of server options.
Run Code Online (Sandbox Code Playgroud)