Ubuntu 22.04:安装 Gnome Shell 扩展应用程序指示器后,QSystemTrayIcon 需要重新启动才能显示

问题描述 投票:0回答:1

在 Ubuntu 22.04 上使用 Qt 框架。 UI 由 QSystemTrayIcon 组成,该图标依赖于 App Indicator Gnome Shell 扩展的安装:

$ sudo apt install gnome-shell-extension-appindicator
可以看到

QSystemTrayIcon,但安装gnome-shell-extension-appindicator后需要注销/登录。有没有办法让 gnome-shell-extension-appindicator 生效,无需注销并重新登录即可显示 QSystemTrayIcon?

ubuntu-22.04 gnome-shell-extensions qsystemtrayicon
1个回答
0
投票

如果您从包管理器安装 AppIndicator 扩展,则必须注销并登录才能加载它。

如果您从extensions.gnome.org安装它(即https://extensions.gnome.org/extension/615/appindicator-support/),那么它应该立即加载。

© www.soinside.com 2019 - 2024. All rights reserved.