Ubuntu 20.04.1 / Caffeine Indicator 没有出现在状态栏中

JJD*_*JJD 6 gnome wayland caffeine 20.04

我最近从 Ubuntu 18.04.4 更新到 20.04.1。尽管咖啡因指标列在启动应用程序中......

启动应用程序的屏幕截图

......它并不会自动出现在顶部的状态栏后,我登录项。这在以前的 Ubuntu 版本中有效。
有什么我可以做的吗?

环境

  • 咖啡因指标版本:2.9.4
  • 窗口管理器:Gnome 3.36.3
  • 桌面环境:ubuntu-wayland
  • Linux 发行版:Ubuntu 20.04.1

分析

从 shell 启动应用程序会产生以下输出:

$ caffeine-indicator 
/usr/bin/caffeine-indicator:184: PyGIDeprecationWarning: Since version 3.11,
    calling threads_init is no longer needed. 
    See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
/usr/bin/caffeine-indicator:106: DeprecationWarning: 
    AyatanaAppIndicator3.Indicator.set_icon is deprecated
  self.AppInd.set_icon(icon_name)
Run Code Online (Sandbox Code Playgroud)

当我激活它时,这是输出:

INFO:root:caffeine-indicator is inhibiting desktop idleness
Run Code Online (Sandbox Code Playgroud)

有关的

Pet*_*žal 5

caffeine软件包包括三个命令:caffeinecaffeinatecaffeine-indicator

caffeine负责防止空闲,但它只在后台运行。您需要caffeine-indicator从顶部栏运行来控制它。

在启动应用程序中同时拥有这两个项目(一个条目为/usr/bin/caffeine,一个条目为/usr/bin/caffeine-indicator)对我来说很有效。


我在 20.04,我已经使用sudo apt install caffeine(与 apt-get 相同,顺便说一句)安装了咖啡因 2.9.4-2

  • 即使指示器不可见,也要检查是否存在咖啡因过程。诸如“pstree |”之类的东西 grep -C 500 caffeine` 显示完整的树,其中突出显示了进程。这应该有助于确定是否是咖啡因故障,或者是否是“启动时运行”故障。 (2认同)

pre*_*iot 2

Super并键入extensions,然后在那里找到咖啡因并转到其setting并启用show on top panel

  • 通过`sudo apt-get install caffeine`。 (2认同)