Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-18-2012, 02:06 PM   #1
LQ Newbie
Registered: Jan 2012
Posts: 11

Rep: Reputation: Disabled
XFCE menus in AWN, solution!

When installing Avant Window Navigator with XFCE (in my case on a LMDE Linux Mint install), the gnome menus, settings etc pop up when you use for example Cairo Menu Applet. I couldn't find a way to get the proper XFCE menus to work - googled but found nothing - so here's a solution. It's quite a lot of terminal typing, maybe someone has a better solution, but here goes:

(newbie tip - ctrl-c the command in your browser, then paste it in the terminal with ctrl-shift-v)

First, the applications entries in the menu:

1) Make the gnome menu files unreachable:

cd /etc/xdg/menus
sudo mv
sudo mv
sudo mv

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

cd ~/.config/menus
ln -s

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 at-properties.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find default-applications.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find display-properties.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnome-about-me.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnome-appearance-properties.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnome-network-properties.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnome-settings-mouse.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnome-theme-installer.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnomecc.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find keybinding.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find keyboard.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find window-properties.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnome-user-share-properties.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find session-properties.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnome-power-preferences.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
find gnome-power-statistics.desktop -type f -exec sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=OPENBOX;/g' {} \;
echo 'OnlyShowIn=OPENBOX;' >> gnome-font-viewer.desktop

6) restart AWN:

killall avant-window-navigator

7) press Alt-F2 and run avant-window-navigator again

8) done!
Old 01-23-2012, 12:45 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Thank you for sharing your solution. May I suggest you mark your thread as solved indicating your post includes a solution? Off the Zero Reply List.

Kind regards,

Old 01-23-2012, 06:25 AM   #3
LQ Newbie
Registered: Jan 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Yeah, marked as solved now.

Easier step 5, with only 2 lines (didnt try it since i'm on a winxp computer now, but should work)

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

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AWN Quit/Logout applet not working (Peppermint Linux Openbox+CCM+AWN) linuxlicious Linux - Desktop 1 07-08-2011 06:07 PM
LXer: AWN Lucido is an Absolute Delight to Use, Install AWN in Ubuntu Maverick, Lucid via PPA LXer Syndicated Linux News 0 09-25-2010 10:10 PM
xfce menus symatic Slackware 3 08-14-2007 01:16 PM
2 problems with xfce menus liquidrabbit Linux - General 4 12-18-2005 03:50 PM
menus in xfce? lewindha Linux - Software 1 06-30-2004 03:46 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration