LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-08-2006, 10:45 AM   #1
paledread
LQ Newbie
 
Registered: Aug 2003
Distribution: debian
Posts: 22

Rep: Reputation: 15
update-menus hijacks my own menu entries


Using xfce4 as window manager.

Then using xfce4-menueditor to reorganise and add to the desktop menus.

The changes are saved to ~/.config/xfce4/desktop/menu.xml, and all is fine.

Then I run update-menus and this modified menu.xml file is overwritten by a new one generated by update-menus.

Why is update-menus so rude as to over-write my personal menu settings, and how can I stop it from doing so?
 
Old 01-08-2006, 11:09 AM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Why are you running 'update-menus' if you are already making the desired changes yourself? You could always rename the xml file before and then after the command to retain your settings.
 
Old 01-08-2006, 11:17 AM   #3
paledread
LQ Newbie
 
Registered: Aug 2003
Distribution: debian
Posts: 22

Original Poster
Rep: Reputation: 15
Agreed, but since update-menus seems to run automatically after new apps with menu entries are installed, that would mean remembering to move or backup the menu.xml file every time a new app is installed.

Painful, and certain to end in tears sooner or later.
 
Old 01-08-2006, 03:58 PM   #4
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Quote:
Originally Posted by paledread
Agreed, but since update-menus seems to run automatically.....
You said, "Then I run update-menus...". It was not made plain in your initial post that this was an auto-config problem. Please be more specific in the future.

If you have the menu-xdg package installed, remove it.

Last edited by Xian; 01-08-2006 at 04:00 PM.
 
Old 01-09-2006, 06:53 PM   #5
dmartins
Member
 
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98

Rep: Reputation: 15
By default, xfce4 looks in /usr/share/applications/ to generate it's 'system' menu. This folder is part of the freedesktop.org standard. Gnome and KDE also follow this standard now. The problem is that not all applications are packaged to create a file in this directory. The best way around this is to create files for the apps that don't show up in your menu. The format isn't difficult to understand and by now there's probably even an app out there that will do this for you.

update-menus aims to solve this but it does seem to overwrite the xfce menus.. have a look at the man page for update-menus. In the configuration section it mentions /etc/menu-methods which contains files dealing with each different window manager. It also says users can create their own methods for how a update-menus deals with certain window managers in ~/.menu-methods

Last edited by dmartins; 01-09-2006 at 07:09 PM.
 
  


Reply



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
Double entries for xine in Konqueror context menus? darkmatter333 SUSE / openSUSE 2 03-27-2005 11:12 AM
KDE menu entries disapear SAC82 Linux - Software 0 06-11-2004 09:52 AM
Menu entries in Mdk 10.0 CE stonehurstX11 Mandriva 2 04-29-2004 03:04 PM
Menu Entries Gone and will not Reappear Parksy Mandriva 10 02-12-2004 08:28 AM
Modifying menu entries X11 Linux - Software 0 04-26-2002 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:41 AM.

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