Comment 8 for bug 1026411

Revision history for this message
Karthik T (sir-nigel-loring) wrote : Re: [Bug 1026411] Re: Caffeine does not work for Linux Mint - Mate version

Hi Rohit,

You have a couple of options.

You could apply the patch directly to the code that is currently installed
- that is in /usr/shared/pyshared/caffeine.
You could also download the latest code from the repo, apply the patch to
it, and then either run "make install" to install it. Or just use the
patched version from that location itself by using its absolute path.

To use the patch itself you want to go into the folder that is 1 level
above the files such as core.py. This would be /usr/shared/pyshared/ for
the first option, or the top directory of the checked out code for option 2
You would then run the command patch < /path/to/file to apply the patch
itself. The patch file is a text file, so you can open it to see what the
changes are, and you can confirm that the changes have happened if you want
to check. You can look at
http://www.cyberciti.biz/faq/appy-patch-file-using-patch-command/ for more
info about applying patches. If you have any other questions pls feel free
to ask.

I was hoping that this code would get integrated into the code base and a
new package built, but this doesnt seem to be happening. Let me see if I
can build a .deb with the patch applied to help others.

Karthik T

On 25 November 2012 17:30, Rohit Pande <email address hidden> wrote:

> Thx, Kartik T. However I am a n00b. This is a foreign language to me. :)
> I have the .deb file that i downloaded. Other than that I noticed that
> the file for Caffeine is located at the following locations on my
> machine: /usr/share/caffeine. Another folder is located under
> /usr/share/doc/caffeine, and yet another at
> usr/shared/pyshared/caffeine. And yes, there is a caffeine file in
> /usr/bin also.
>
> Would it please be possible for someone to pls let us know how to do
> this? Thanks a lot.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1026411
>
> Title:
> Caffeine does not work for Linux Mint - Mate version
>
> Status in Caffeine:
> New
>
> Bug description:
> Hi, Caffeine currently does not work as is for the MATE version of
> linux mint, since as a part of their forking of Gnome 2 all the names
> have changed. I have attached a patch of the changes i have made to
> get it to work with MATE, basically just copied over the GNOME parts
> and replaced the names with the correct ones. It works perfectly on my
> machine.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/caffeine/+bug/1026411/+subscriptions
>