Where is my menu file?

Bruno Jesus 00cpxxx at gmail.com
Wed Jul 5 03:22:57 CEST 2006

> You're accessing the menu via the panel, i.e. the menu plugin. Does the
> menu also show when you open it via the desktop (right-click)?
> There should be files like
> ~/.config/xfce4/panel/xfce4-menu-11455634337.rc, belonging to the panel
> configuration stuff. Can you find something like that?
> In there are normally information about the location of the menu file
> being used for the panel plugin.

I see, the folder .config/xfce4/panel shows lots of files with long
numbers, unfortunately my menu file was not there.

bruno at melquior:~/.config/xfce4/panel$ ls -la
total 57
drwxr-xr-x 2 bruno bruno  560 2006-07-04 22:03 .
drwxr-xr-x 9 bruno bruno  344 2006-07-03 20:26 ..
-rw-r--r-- 1 bruno bruno    8 2006-07-03 20:42 actions-115083845911.rc
-rw-r--r-- 1 bruno bruno   61 2006-07-03 20:42 clock-14.rc
-rw-r--r-- 1 bruno bruno 1639 2006-06-05 17:03 contents.xml
-rw-r--r-- 1 bruno bruno 1639 2006-06-05 17:13 contents.xml.bak
-rw-r--r-- 1 bruno bruno    8 2006-07-03 20:42 pager-11508300004.rc
-rw-r--r-- 1 bruno bruno    8 2006-06-20 16:00 pager-2.rc
-rw-r--r-- 1 bruno bruno  969 2006-07-04 14:43 panels.xml
-rw-r--r-- 1 bruno bruno   27 2006-07-04 14:43 separator-11508302217.rc
-rw-r--r-- 1 bruno bruno   27 2006-07-03 20:42 separator-11508302539.rc
-rw-r--r-- 1 bruno bruno   27 2006-07-03 20:42 separator-115083240110.rc
-rw-r--r-- 1 bruno bruno   14 2006-07-03 20:42 systray-11508301626.rc
-rw-r--r-- 1 bruno bruno   14 2006-06-20 16:00 systray-4.rc
-rw-r--r-- 1 bruno bruno   61 2006-07-03 20:42 tasklist-11508298572.rc
-rw-r--r-- 1 bruno bruno  186 2006-07-04 10:38 xfce4-menu-5.rc

> Do you have a backup of your previous menu.xml (which you used as user
> aluno)? If so, copy it to
> /home/bruno/.config/xfce4/desktop/, specify that path in the menu
> properties dialog and see what happens.

I do not have that menu file anymore but i'll try creating a new menu
and see what happen

> Did you try to use the default
> menu? Will it load properly and what does it look like?

Just done that now and the menu doesn't want to popup anymore when clicked.
Changing back to the custom (erased) menu, my old menu came back and
the menu gets popuped again.

> Did you try to
> edit the menu via the Edit Menu button? If the file doesn't exist, an
> error message should pop up.

Yes, xfce4-menueditor gives me an error about the file that doesn't exist.

> When I specify a wrong path in the menu properties dialog, that path
> will be accepted without error message, but no menu is shown.

With the wrong path, my menu is still being shown.

> Maybe there's also the possibility that your old installation become
> mixed up with the new one?

Maybe, but I still think that the menu is cached somewhere.

Let me do a cat here.
cat `find .cache`

My menu file appeared in the cat command. So it's somewhere over
.cache, unfortunately I don't know perl nor awk to filter the output,
let me look for it...


bruno at melquior:~/.cache/xfce4/desktop$ ls -l
total 24
-rw-r--r-- 1 bruno bruno   116 2006-06-20 15:58
-rw-r--r-- 1 bruno bruno 10576 2006-06-20 15:58
-rw-r--r-- 1 bruno bruno   116 2006-07-04 22:08
-rw-r--r-- 1 bruno bruno   101 2006-07-04 22:08

So Xfce doesn't rebuild the menu cache if the file is not avaliable
and uses the old cache. It should warn the user and destroy the cache
files don't you think?

> Just some thoughts.
> Nick.


Bruno Gonçalves de Jesus
Live free() or die()!

More information about the Xfce4-dev mailing list