caffeine on LMDE

Questions about applications and software
Forum rules
Before you post please read this

caffeine on LMDE

Postby bikepunk on Tue Jan 31, 2012 2:48 pm

Hi

I'm trying to install caffeine: https://launchpad.net/caffeine on LMDE and I meet a lot of trouble since it seems this package is developed for ubuntu and not debian.

since it's not recomended to use ppa on LMDE ( viewtopic.php?f=199&t=89659&p=519506 ) I'm trying to compile caffein from sources.
see : http://www.lucidelectricdreams.com/2011 ... ra-16.html for details

for some reason I do not have glib-compile-schemas neither /usr/share/caffeine/images/ and /usr/share/caffeine/glade/

it seems compiling though but when I try to run it, I get:
Code: Select all
Gtk-Message: Failed to load module "canberra-gtk-module"

GLib-GIO-ERROR **: Settings schema 'net.launchpad.caffeine' is not installed

aborting...
Aborted


I do not know python, so I actually don't really know what I am doing... Any help is very welcome. Any other way to disable the screensaver while watching streaming videos is also welcome

related topic: VLC and the screensaver on LMDE: viewtopic.php?f=190&t=56027&start=0&hilit=caffeine+lmde



PS: this is my first post on this forum.
bikepunk
Level 1
Level 1
 
Posts: 3
Joined: Fri Dec 16, 2011 6:58 pm

Linux Mint is funded by ads and donations.
 

Re: caffeine on LMDE

Postby Arran on Tue Jan 31, 2012 11:00 pm

Hello Frischling!!!

Kaffeine is in the Repos.
It will install a few KDE based dependencies.
Best greetings from Scotlands nicest Holiday Isle
Image
OS: Mint12 KDE, Graphic: Nvidia I4800-GS, Monitor: HP LP2065, «Broadband» Ø 50kib/sec!!!
User avatar
Arran
Level 4
Level 4
 
Posts: 205
Joined: Sat Jul 30, 2011 4:24 am

Re: caffeine on LMDE

Postby bikepunk on Wed Feb 01, 2012 10:54 am

:roll: Dude, please read my message :
kaffeine IS NOT caffeine.
I'm not interested in an other media player I just need a smart way to control the screensaver... anyone else
bikepunk
Level 1
Level 1
 
Posts: 3
Joined: Fri Dec 16, 2011 6:58 pm

Re: caffeine on LMDE

Postby orticultura on Thu Feb 02, 2012 2:04 pm

I've installed without any problem caffeine-1.0.1 and it works fine. It's not the newest version.

1. Download the tarball from https://launchpad.net/caffeine
2. tar xvf caffeine-1.0.1.tar.gz && cd caffeine-1.0.1
3. sudo apt-get install python-xlib
4. python setup.py build
5. sudo python setup.py install

You should be now able to start Caffeine by typing caffeine in the command line or by clicking on Applications > Accessories > Caffeine.
When Caffeine starts, an icon of a coffee cup will appear in the task bar.

Hope it helps you
orticultura
Level 1
Level 1
 
Posts: 1
Joined: Thu Feb 02, 2012 1:50 pm

Re: caffeine on LMDE

Postby bikepunk on Fri Feb 03, 2012 12:30 pm

Thanks orticultura,

I just tried your way, it gives the same problem as in my first message, may be it's just because I didn't uninstall the unworking 2.4.1 version. I don't know how to uninstall it since is not a deb package... :?

I will contact the caffeine dev team.
bikepunk
Level 1
Level 1
 
Posts: 3
Joined: Fri Dec 16, 2011 6:58 pm

Re: caffeine on LMDE

Postby dbkblk on Mon Feb 06, 2012 6:28 pm

You just have to install gir1.2-notify-0.7 and here we go !
dbkblk
Level 1
Level 1
 
Posts: 32
Joined: Thu Dec 16, 2010 10:31 am

Re: caffeine on LMDE

Postby HisDudeness on Tue Oct 16, 2012 6:27 am

I have installed gir1.2-notify-0.7 but still got bikepunk's same error. Then I remembered some actions I had to do about Cinnamon's applets, which had something to do with schemas. I tried that, and got more far, but still get some errors. I'm trying to install the latest version (https://launchpad.net/caffeine/2.4/2.4.1/+download/caffeine_2.4.1%2B419%7Eoneiric1.tar.gz).

The actions you have to do to get past that error are (here I'm assuming you entered into the extracted folder):

  • Copy the xml you can find in some sub-directory of the recipe folder (this is the proper default name of what the tar.gz contains in 2.4.1 version... mah) into glib-2.0 schemas' one.
    Code: Select all
    sudo cp share/glib-2.0/schemas/net.launchpad.caffeine.gschema.xml /usr/share/glib-2.0/schemas/
  • Make glib-2.0 compile the schemas present in the folder, so that it refreshes its contents and does make a sense of the new one we just put in there
    Code: Select all
    sudo glib-compile-schemas /usr/share/glib-2.0/schemas

The errors I get now when trying to launch caffeine are these:
Code: Select all
dude@susan:~/Downloads/recipe-2.4.1+419$ caffeine
Gtk-Message: Failed to load module "canberra-gtk-module"
ERROR:root:Could not find any typelib for AppIndicator3

Traceback (most recent call last):
  File "/usr/local/bin/caffeine", line 42, in <module>
    caffeine.main()
  File "/usr/local/bin/../lib/python2.7/dist-packages/caffeine/main.py", line 527, in main
    main = GUI()
  File "/usr/local/bin/../lib/python2.7/dist-packages/caffeine/main.py", line 153, in __init__
    self.ProcAdd = ProcAdd()
  File "/usr/local/bin/../lib/python2.7/dist-packages/caffeine/main.py", line 102, in __init__
    "proc.glade"))
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Failed to open file '/usr/local/lib/python2.7/dist-packages/caffeine/../../../../share/caffeine/glade/proc.glade': Permission denied


Can anyone help me with this? The last line looks like a pretty screwed up path, like he's going deep into /usr/local/lib/python2.7/dist-packages/caffeine (which is an empty directory) and then going back 4 levels to get to /usr/share/caffeine/glade to open proc.glade (and caffeine/ doesn't even exist in /usr/share). What do I have to do? Does anybody know an application like caffeine which is suitable for LMDE?
The Dude minds.
User avatar
HisDudeness
Level 1
Level 1
 
Posts: 27
Joined: Tue Oct 09, 2012 5:02 am
Location: Melzo, Italy

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 7 guests