You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 22.04安装App Indicator扩展后无需重启使QSystemTrayIcon生效的方法

无需注销即可让App Indicator扩展生效并显示QSystemTrayIcon的方法

在Ubuntu 22.04下,安装gnome-shell-extension-appindicator后,不用注销登录就能让扩展生效并显示QSystemTrayIcon,试试下面两种方法:

方法一:命令行操作

  1. 确保扩展已安装(未安装则执行):
    sudo apt install gnome-shell-extension-appindicator
    
  2. 启用扩展:
    gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
    
  3. 重启GNOME Shell:
    • Xorg会话:按下Alt+F2,输入r后回车,Shell会快速重启且不关闭当前应用
    • Wayland会话:执行以下命令重启Shell
      dbus-send --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Meta.restart("Restarting...")'
      

方法二:图形工具操作

  1. 安装GNOME Tweaks工具(未安装则执行):
    sudo apt install gnome-tweaks
    
  2. 打开GNOME Tweaks,切换到「扩展」标签页,找到「AppIndicator and KStatusNotifierItem Support」并勾选启用
  3. 按照上述方式重启GNOME Shell

完成步骤后重新运行Qt应用,QSystemTrayIcon即可正常显示,全程无需注销登录。

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.25 04:43:10