LinuxQuestions.org
Register a domain and help support LQ
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 12-25-2004, 01:23 PM   #1
Levitate
Member
 
Registered: Aug 2004
Posts: 63

Rep: Reputation: 15
updating menus screwed up?


I'm running sarge, and I used KDE for awhile and then removed it to give WindowMaker a shot...but the menus in WindowMaker won't update automatically and to get them to update, i have to log out of X completely and do update-menus from the command line, and then get back into WindowMaker

i found something that said KDE can mess up the menu updating, and instead of looking for a global menu update, it's now looking at the individual user ones, which is why i have to do it manually now. but it didn't say anything about how to fix that...

sooo...is there a way i can fiddle with this and get it back to "normal"? i'm sorry if my description of the issue isn't too clear

i was also wondering if there's an easy way to manually edit the menus...when i go to do it in the WindowMaker config program, it says something like "The menu version you are using is not compatible with this program, would you like to revert to the old version?" (not an exact quote, similar though) and i can't edit the menus.

i found a menu.hook file somewhere (can't remember off hand right now) but it says not to edit it directly because it's automatically generated, etc.


i guess i'm just trying to get it so when i install a new program, i don't have to fight with it to get it to show on the menus, and i want to be able to arrange the stuff on the menus the way i like.

i appreciate it if someone can help
 
Old 12-25-2004, 03:08 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
We seem to have different settings because my Window Maker application menu is updated automatically every time I install/remove apps. I cannot say why it doesn't work for you because I've never had any problems with my menu. I've got the "menu" and "menu-xdg" packages installed, if that makes any difference. You can do "dpkg -l | grep menu" to see if you've got these too.

It is possible to modify some aspects of the right-click menu in Window Maker while still keeping the auto-update feature. At least you can decide where individual programs should appear in the menu by copying the appropriate menu files from /usr/lib/menu/ to /etc/menu/ and editing them there. If you install non-debian apps, you can make menu entries for them in /etc/menu/. However, the changes in /etc/menu/ require running "update-menus" and restarting Window Maker before they show in menu.

You can use the same method to associate keyboard shortcuts to certain menu entries. For example, I've got a file /etc/menu/aterm that reads:
Code:
?package(aterm):needs="X11" section="XShells"\
  title="Aterm" command="/usr/bin/aterm"\
  shortcut=Shift+F1
I can open aterm by pressing the Shift and F1 keys at the same time. It's also possible to move aterm to another menu directory by editing the section entry.

Window Maker appears to be the only window manager where the files in /etc/menu/ actually have any effect on menus, so you're lucky in asking specifically about Window Maker menus.

Last edited by Dead Parrot; 12-25-2004 at 03:10 PM.
 
Old 12-25-2004, 04:52 PM   #3
Levitate
Member
 
Registered: Aug 2004
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
We seem to have different settings because my Window Maker application menu is updated automatically every time I install/remove apps. I cannot say why it doesn't work for you because I've never had any problems with my menu. I've got the "menu" and "menu-xdg" packages installed, if that makes any difference. You can do "dpkg -l | grep menu" to see if you've got these too.
yeah i think something got changed that is supposed to do the automatic updating...like i said, i think i read that KDE can mess up the menu updating if you uninstall it, something like that

dunno, i'll check into the menu and menu-xdg packages, thanks
 
Old 12-30-2004, 02:11 PM   #4
Levitate
Member
 
Registered: Aug 2004
Posts: 63

Original Poster
Rep: Reputation: 15
ok i'm gonna resurrect this for a bit...

i noticed when i open up windowmaker as root, that it is doing the auto menu updates

as my normal user, it doesn't

so it'd seem that somewhere in the config for the user, it's not looking in the right place. but in the config for the root, it is.

anyone have ideas what is telling it where to look so i can maybe edit it to look in the right place?
 
Old 12-31-2004, 05:46 AM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Check the files you can find from ~/GNUstep/Defaults/ . I've got a file ~/GNUstep/Defaults/WMRootMenu that reads:
Code:
"menu.hook"
I think this has some connection with the Debian menu system via the files in /etc/X11/WindowMaker/ but I also think you're only supposed to edit the files in your own home directory.
 
Old 12-31-2004, 04:08 PM   #6
Levitate
Member
 
Registered: Aug 2004
Posts: 63

Original Poster
Rep: Reputation: 15
as i recall (i'm not on my debian machine at the moment) that's what it says for me too...but it's like it's looking at a different menu.hook file

annoying but not horrible i guess, i can always just run update-menus

but i have to add a entry for mplayer here sometime...
 
Old 12-31-2004, 04:52 PM   #7
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 51
I don't know if this might help, but in icewm, i do as user:

update-menus

and that's it.
 
Old 12-31-2004, 04:54 PM   #8
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
The command "find / -name menu.hook" outputs /etc/X11/WindowMaker/menu.hook so that's probably the file that defines all users' menus in Window Maker. The menu.hook file tells to take a look at /usr/share/doc/menu/menu.txt.gz. This file has lots of useful info and it tells to attack /etc/menu-methods/wmaker if you want to make changes to menus.

As I said, in my Window Maker menu automatic updating works fine but maybe you can solve your problem by studying these files.

EDIT (2005.06.09):

For the future reference -- running "update-menus" as normal user creates a file ~/GNUstep/Library/WindowMaker/menu.hook and this may stop Window Maker from automatically updating the root menu. Removing ~/GNUstep/Library/WindowMaker/menu.hook will restore automatic menu updating.

Last edited by Dead Parrot; 06-09-2005 at 05:26 AM.
 
  


Reply


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
9.3 menus ??? bigjohn Suse/Novell 3 07-06-2005 06:37 AM
Gnome menus not updating automatically biotek1 Debian 3 05-09-2005 12:36 AM
Menus James McGee Suse/Novell 2 11-12-2004 07:43 AM
See through menus? Kourosh Mandriva 2 08-26-2004 07:20 PM
Debian Menus not updating reyemarr Debian 0 03-22-2004 07:27 AM


All times are GMT -5. The time now is 12:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration