Hello there Caffeine is starting but when I click on it in Plnak it disappears.
When I open it in terminal this is what it says. Not sure what it means.
khalil@khalil-Lenovo-G50-70:~$ caffeine
/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
Thanks anyhow. The help doesn’t give much more info.
khalil@khalil-Lenovo-G50-70:~$ caffeine --help
/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
usage: caffeine [-h] [-V]
Prevent desktop idleness in full-screen mode
optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import GObject, Gtk, GLib
usage: caffeine [-h] [-V]
khalil@khalil-Lenovo-G50-70:~$ caffeine
/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
From the package's description, this application runs as an indicator, and shouldn't appear in Plank. Does the program run then immediately exit to the terminal prompt? To me, it looks like it's running, but doesn't output anything in the terminal.
Not it’s not working with this script either. I am on 16.04 and yes it is opening in plank not in the indicator area! I don’t know why. And if I press on it in Plank it crashes.
No it still crashes from Plank when I add the lines, but in terminal nothing happens. So it doesn’t show error or anything else. In the process manager it is sleeping and I don’t see it in the indicator area. Any clue? Perhaps we should modify caffeine-indicator as well?
After playing around I finally got a working version. I had to go back to version 2.4.1 to get a version that works correctly. This was released in 2013. All the previous builds crash on startup.
If you want to try it I have an unsigned build that will complain about newer version available and all that but for what it’s worth here it is.