Wednesday, January 2, 2013

xfce menus in awn (avant-window-navigator)

from http://www.linuxquestions.org/questions/linux-newbie-8/xfce-menus-in-awn-solution-924472/:

1) Make the gnome menu files unreachable:

cd /etc/xdg/menus
sudo mv gnome-applications.menu original.gnome-applications.menu
sudo mv gnome-settings.menu original.gnome-settings.menu
sudo mv gnomecc.menu original.gnomecc.menu


2) make AWN think that your local XFCE menu file is the Gnome menu file:

cd ~/.config/menus
ln -s xfce-applications.menu gnome-applications.menu


Then the settings entry in the menu, a bit more complicated:

3) copy the settings entries into your local folder so you can modify them:

cd /usr/share/applications
cp *.desktop ~/.local/share/applications


4) Make the XFCE settings menu entries show up in AWN:

cd ~/.local/share/applications
find -type f -exec sed -i 's/OnlyShowIn=XFCE;//g' {} \;


5) Hide the Gnome-specific settings (the ones I could think of anyway)


find -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
echo 'OnlyShowIn=OPENBOX;' >> gnome-font-viewer.desktop