Caffeine installed, but will not start

Good morning. Hope everyone had a good weekend.
Arvidjaar above said he was able to reproduce the issue, which is good news.
What are the next steps ? Is there a solution?

Thanks again for everyone’s help.

Checking other forum threads on Caffeine found:

Malcolm Lewis was the primary support on that post.
He asks if typelib-1_0-Gtk-2_0 and python-gobject are installed.
I just checked and neither are on my computer.
I will add those via YaST. There are multiple other packages to be installed as well.
Hopefully this will fix the issues. (Malcolm has been a great help previously)
Are there any concerns before I install these packages?

thanks

As a quick summary of this post:
LXQT with openSuSE 15.4
Caffeine 2.8.3-bp 154.1.30-noarch from YaST / repository OSS
.desktop files are:
/usr/share/applications/caffeine.desktop
/usr/share/applications/caffeine-indicator.desktop
Neither .desktop opens the app on selection.
Running either in terminal shows the error “Permission denied”
Running the caffeine app directly errors:

> caffeine
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 key
(caffeine:31418): dbind-WARNING **: 08:53:53.866: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
/usr/bin/caffeine:25: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gtk, GLib
Traceback (most recent call last):
  File "/usr/bin/caffeine", line 36, in <module>
    ewmh = EWMH()
  File "/usr/lib/python3.6/site-packages/ewmh.py", line 50, in __init__
    self.display = _display or display.Display()
  File "/usr/lib/python3.6/site-packages/Xlib/display.py", line 89, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python3.6/site-packages/Xlib/display.py", line 71, in __init__
    protocol_display.Display.__init__(self, *args, **keys)
  File "/usr/lib/python3.6/site-packages/Xlib/protocol/display.py", line 166, in __init__
    raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Invalid MIT-MAGIC-COOKIE-1 key'

@idee Hi, it really is un-maintained, plus it’s available in GNOME via an extension these days.

I had a quick look at the 2.9 branch, whilst it would probably build for Leap 15.4 there is a new python module required (ewmh) to support and this doesn’t build for that release…

I suggest looking for an alternative… :slightly_frowning_face:

Thank you Malcolm. I have been looking, but not found much yet. I will keep looking. Do you have any recommendation that you think would work?

@idee WhyNotHugo/caffeine-ng: ☕ Tray bar application able to temporarily inhibits the screensaver and sleep mode. - caffeine-ng - Codeberg.org

@idee I did build caffeine-ng, but supporting apps in Leap are too old version (eg libnotify) wise… Tumbleweed is fine…