You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何在Ubuntu 17.10(Wayland环境)注销?右上角无注销选项

Logging Out of Ubuntu 17.10 (Wayland Session) Without Restarting

Hey there! I totally get the frustration when you can't find the logout option in Ubuntu 17.10's Wayland session—those missing buttons in the top-right menu can be really annoying. Here are a few reliable ways to log out without restarting your system:

1. Quick Keyboard Shortcut

This is the fastest method for one-off logouts:

  • Press Alt + F2 to open the GNOME run dialog.
  • Type logout into the input box and hit Enter. Your session will immediately log out.

2. Terminal Commands

If you're comfortable with the terminal, these commands work seamlessly:

  • Open the terminal with Ctrl + Alt + T.
  • To log out instantly without a confirmation prompt, run:
    gnome-session-quit --logout --no-prompt
    
  • If you want a confirmation dialog before logging out (to avoid accidental exits), use:
    gnome-session-quit --logout
    

3. Permanent Fix: Add Logout Button to the Top Bar

If you want the logout option to show up in your system menu permanently, use GNOME Tweaks:

  • First, install GNOME Tweaks by running this in the terminal:
    sudo apt update && sudo apt install gnome-tweak-tool
    
  • Launch GNOME Tweaks from your applications menu.
  • Navigate to the Top Bar section.
  • Check the box next to "Show logout option". The logout button will now appear alongside lock, restart, and shutdown in your top-right menu.

内容的提问来源于stack exchange,提问作者rubo77

火山引擎 最新活动