Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a patch named "incator.patch". How can I apply that to the application "indicator applet" and get it running? The bug will solve a bug with key-binding caused by "indicator applet".

Patch is here : launchpadlibrarian.net/52193166/hotkey.patch .

share|improve this question
    
lol? This question needs a little detail in order for anyone to provide an answer. Is it an applet you created? One from another program? The entire indicator applet itself? –  RolandiXor Jan 12 '11 at 14:23
    
@Roland Taylor: I just switch to linux recently.Patch is here. It will solve a bug with key-binding caused by "indicator applet". launchpadlibrarian.net/52193166/hotkey.patch . –  Kim Jan 12 '11 at 14:26
    
I think you would need to report a bug on indicator-applet and ask the developers to take a look at your patch. –  RolandiXor Jan 12 '11 at 14:29
    
@Roland Taylor: It has already been reported and the patch fixed the bug in a brute way. –  Kim Jan 12 '11 at 14:30
add comment

1 Answer

up vote 7 down vote accepted

To quickly generate new packages with your patch applied, run the following in a gnome-terminal:

sudo apt-get install build-dep indicator-applet
sudo apt-get install devscripts
apt-get source indicator-applet
cd indicator-applet-<version-string>
cp /path/to/patch/indicator.patch .
patch --dry-run -p1 < indicator.patch

Continue only if that succeeds without errors.

patch -p1 < indicator.patch
debuild -us -uc

Now wait for the thing to compile and if everything worked, you'll get some debs ready for install:

cd ..
sudo dpkg -i *.deb # I'm lazy, just choose the debs that are already installed

You'd need to do this every time the indicator-applet gets updated (but then I don't know how often such updates happen in stable releases).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.