Saturday, October 27, 2012

Ubuntu Unity HUD and Eclipse

To make the Eclipse menu available in HUD Eclipse has to be removed from the HUD blacklist. This can be done using the following script (has to be run with sudo).
#!/bin/bash
cd ~
mkdir -p hud4eclipse_working_dir
cd hud4eclipse_working_dir
cp /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/menuproxies/libappmenu.so .
cat libappmenu.so | sed s/Eclipse/Xclipse/ > libappmenu.so.new
cp libappmenu.so.new /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/menuproxies/libappmenu.so
The script works for Ubuntu 12.10 with Eclipse 3.8. Nevertheless it should work with other Eclipse versions as well.