如何将程序及其参数传递给 startx

Sae*_*d87 3 command-line xorg

在终端中,我确实喜欢这样并且工作正常:

$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 的参数。

解决办法是什么?

A.B*_*.B. 5

使用以下命令

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)