Category Archives: Ubuntu

Adding custom items to the panel – unity-2d

That was tricky!
There is no way to drag&drop push/pull/faceroll favorite app to launcher in unity-2d if you started it from terminal (or by other hacky way) except:
Read carefully the http://standards.freedesktop.org/desktop-entry-spec/latest/, or search for an existing .desktop files and modify that (#win):

akoskm@turing:~$ dpkg-query -S nautilus-home.desktop
nautilus: /usr/share/applications/nautilus-home.desktop

Now you know the location, let’s go and delete unnecessary things and modify patches according to your application:

gksu gedit /usr/share/applications/nautilus-home.desktop &

then File > Save As with the name of your application (I did this for eclipse so it will be eclipse-indigo.desktop).
Finally here is how my eclipse-indigo.desktop launcher looks like:

[Desktop Entry]
Version=1.0
Name=Eclipse Indigo
GenericName=IDE
Exec=/home/akoskm/Applications/eclipse-indigo/eclipse %U
Terminal=false
Icon=/home/akoskm/Applications/eclipse-indigo/icon.xpm
Type=Application
Categories=Programming;IDE;

Finally you should add it to the launcher. Start gconf-editor then navigate to /desktop/unity-2d/launcher.
Right-click to favorites key, Edit Key, Add and as New list value type the name of previously created .desktop file. Okay. You can move up/down the entries as you discovered already.
Now restart the panel:

killall unity-2d-launcher
.
You should see a launcher for your app.

Advertisements

Adding items to the panel – unity-2d

Not a big trick but if you were using unity (not the 2D one rather the Compiz version) you should expect that right clicking on an application brings up a menu where you can add your favorite application to the panel.
But this is not the case!
You should start the application, and _while_ it is running do a right-click on its icon in the panel and select “Keep In Launcher”.
Keep in Launcher

Building Qt Jambi from source on Ubuntu 11.04

To build it from sources you have to install the following dependencies:
ant, java (either the sun-java6-jre or the openjdk one), qt development libraries .
If you don’t know what I’m talking about paste the following line to your terminal:

sudo apt-get install default-jdk default-jre ant libqt4-dev libqtwebkit-dev libphonon-dev phonon-backed-gstreamer

Modify qtjambi.java.library.path in your buildpath.properties according to libstdc++.so.6 location.
In my case it is:

akoskm@turing:~/qtjambi/akoskm-unittests$ dpkg-query -S libstdc++.so.6
libstdc++6: /usr/lib/i386-linux-gnu/libstdc++.so.6.0.14
libstdc++6: /usr/lib/i386-linux-gnu/libstdc++.so.6

after replacing the default path it looks like:
qtjambi.java.library.path = /usr/lib/i386-linux-gnu
Build it:
ant all
Happy hacking !

The packages in ppa should arrive soon, stay tunned.

Planned changes landed

You can find the package under libqtjambi and libqtjambi-jni instead of qtjambi.
If you have any older versions of qtjambi (4.7-1, 4.7-2) I recommend the uninstallation of these packages.
Both packages are required if you want to use Qt with your Java applications. libqtjambi contains the Java archive (and it will contain the documentation later) which have to be included for Qt Jambi applications, while libqtjambi-jni installs the Java Native Libraries.
You can install libqtjambi-jni separately – it recommends the libqtjambi package – but libqtjambi depends on libqtjambi-jni.
This restructuring to smaller packages will make further updates smaller and easier to maintain.
You can find the new packages under https://sourceforge.net/projects/qtjambi/files/binary-all/ and the old ones are under https://sourceforge.net/projects/qtjambi/files/binary-i386/.
Comments are welcome.