Recently, I have been helping out many, many people in #ubuntu-app-devel on Freenode with getting a their application indicator to use a custom icon. I recently went through a lot of hassle trying to figure this out, so I thought I would post about it.
So normally to initialize your application indicator, you would have something like this:
ind = appindicator.Indicator("MyApp", "my-app-icon", appindicator.CATEGORY_APPLICATION_STATUS)
But that will only allow you to use icons in the current icon theme, not your own, so to fix this you just need to specify the path like so:
ind = appindicator.Indicator("MyApp", "/usr/share/myapp/media/my-app-icon.png", appindicator.CATEGORY_APPLICATION_STATUS)
The above code assumes that your app is a Quickly application (/usr/share/myapp/ is where Quickly applications install themselves to). If your application is not a Quickly application then you just need to point the path where your icon is when the application is installed.
Today I was about to download a tool called PSPShrink which basically compresses your Sony PSP iso’s into smaller cso files. Just as I was about to download the tool I found a tool called ciso in the maverick repositories, this tool does exactly the same thing, except it has no clunky unnecessary GUI like PSPShrink.
So I now use ciso, which is available in the repositories and can be installed by running the following in a terminal:
sudo apt-get install ciso
It is very easy to use and very convenient, since I am using the terminal a lot of the time.
I figured it’s time for another tip, since I offered to write this tip up for a fellow IRC user.
It appears that the Ubuntu Manual Project (which I’m a part of) has no instructions up for using the new LaTeX PPA, so I thought I would take this opportunity to help fill a gap.
So, to add the PPA first you will need to use the add-apt-repository command:
sudo add-apt-repository ppa:ubuntu-manual/ubuntu-manual
Then you will need to update your sources:
sudo apt-get update
Lastly you will need to install the ubuntu-manual-tex package:
sudo apt-get install ubuntu-manual-tex
That’s it, your done!
A new addition to my always growing blogging skills, these regular tips will attempt to provide insight into some of Ubuntu’s less well known but extremely useful features, most of these will (hopefully!) be command-line based as alot of people find this much faster and more efficient to use.
This weeks tip:
This weeks tip is a feature that was introduced in Ubuntu 9.10, alot of you may already know about this feature, but for those who dont it is a command used to quickly add a ppa to ubuntu:
NOTE: you will need to use sudo with this command in order to actually add the ppa to your system.
I find this command extremely useful since it removes the need to manually edit your sources file and add the key to your system.