再起動または電源を切るためにXFCEメニュー項目を実行するコマンドはありますか?

再起動または電源を切るためにXFCEメニュー項目を実行するコマンドはありますか?

Herunterfahren(DE)/Shut DownNeustarten(DE)/がありますReboot

ここに画像の説明を入力してください。

これらのGUIエントリをコマンドラインから実行できますか?それでは、コマンドは正確に何ですか?

確認しましたXFCE Power Managerのマニュアルページしかし、私が理解している限り、これらのコマンドはそこにリストされていません。

ベストアンサー1

~からhttps://askubuntu.com/a/771187/158442:

私の考えであなたが望むものはxfce4-session-logout(オンラインマンページ)。

マニュアルページからの抜粋(再フォーマット、フィルタリング):

The xfce4-session-logout command allows you to programmatically logout
   from your Xfce session. It requests the session manager to display  the
   logout  confirmation  screen,  or,  if  given  one  of the command-line
   options below, causes the session manager to take the requested  action
   immediately.

OPTIONS:
   --logout     Log out without displaying the logout dialog.
   --halt       Halt without displaing the logout dialog.
   --reboot     Reboot without displaying the logout dialog.
   --suspend    Suspend without displaying the logout dialog.
   --hibernate  Hibernate without displaying the logout dialog.
   --fast       Do  a  fast shutdown.  This instructs the session manager not to
                save the session, but instead to quit everything quickly.
  • 閉じるには:xfce4-session-logout --halt

  • 再起動:xfce4-session-logout --reboot

タスクを手動で選択できるダイアログボックスを取得するには、引数なしで実行します。

xfce4-session-logout 

おすすめ記事