Blog posts tagged with linux

27 May 2011

How to fix Eclipse Helios crashes on Fedora 15

Fedora 15 was released on tuesday 24.5.2011 and it contains the new flashy Gnome 3 desktop and loads of other new stuff. As usual, the new Fedora distribution contains also new versions of the system libraries, including version 2 of the XULRunner. Unfortunately the unmodified Eclipse Helios only support versions 1.8.x - 1.9.2.x of XULRunner and doesn't play nice with version 2.

Eclipse starts ok and most of the features work without problems, but the content-assist is something that crashes the program every time. You don't actually need to press Ctrl+Space to init the crash, hovering the mouse cursor over a variable in the source code is enough.

Fortunately the crashing can be avoided by doing two things:

  1. In Gnome3 the webkit library name changed to libwebkitgtk so you need to create one missing symbolic link: ln -s /usr/lib/libwebkitgtk-1.0.so.0 /usr/lib/libwebkit-1.0.so.2
  2. Add -Dorg.eclipse.swt.browser.UseWebKitGTK=true to eclipse.ini

After doing these two things, the content-assist and the internal browser work once again and they won't crash the whole development environment.


16 January 2011

Spotify links in Linux

When using Spotify in Linux there's one thing that doesn't work out of the box, the spotify links to songs and playlists. Fortunately getting them to work is actually very simple, at least in Gnome. You just need to issue these three commands as the superuser:

gconftool-2 -t string -s /desktop/gnome/url-handlers/spotify/command "/usr/bin/spotify -uri %s"
gconftool-2 -t bool -s /desktop/gnome/url-handlers/spotify/needs_terminal false
gconftool-2 -t bool -s /desktop/gnome/url-handlers/spotify/enabled true

After issuing these commands the links should work everywhere.

Update 23.2.2012:

In Gnome3 you need to modify the /usr/share/applications/spotify.desktop file.

Change Exec to:

Exec=spotify -uri %u ""

and add MimeType to the file:

MimeType=x-scheme-handler/spotify;

After making the changes, run "update-desktop-database -q" as root and the spotify links work once again.