You are not logged in.
Using Xubuntu 14.04 with xfce4 4.10. I accidentally deleted both copies of the applications menu, I thought they would be automatically re-created. (I have done this before and it worked.) Is there any way to get it back?
Last edited by marsdenf (2016-11-10 23:47:24)
Offline
Which "both copies"? The one in ~/.config/menus and the one in /etc/xdg/xdg-xubuntu/menus? If so, re-install the xubuntu-default-settings package - it will restore /etc/xdg/xdg-xubuntu/menus/xfce-applications.menu.
Or, grab it from here and manually recreate it in the correct location.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I tried reinstalling xubuntu-default-settings and then rebooting, twice using terminal and synaptic. Didn't work. I downloaded the .tar.gz file you linked to, but I don't know what to do with it. Where should it be extracted to?
Offline
Perhaps the issue isn't what I thought it was. Which copies of the menu file did you delete? What file(s) are you talking about? From which directories?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
If I remember correctly, deleted xfce-applications.menu from both .config and /xdg... Perhaps I should uninstall xubuntu-default-settings before (re)installing?
Offline
You could also just manually re-create the /etc/xdg/xdg-xubuntu/menus/xfce-applications.menu file with the following content:
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
<Name>Xfce</Name>
<DefaultAppDirs/>
<DefaultDirectoryDirs/>
<Include>
<Filename>exo-web-browser.desktop</Filename>
<Filename>exo-mail-reader.desktop</Filename>
<Filename>ubuntu-software-center.desktop</Filename>
<Filename>xfhelp4.desktop</Filename>
<Filename>xubuntu-website.desktop</Filename>
<Filename>xubuntu-contribute.desktop</Filename>
<Filename>xfce4-about.desktop</Filename>
<Filename>xfce4-session-logout.desktop</Filename>
</Include>
<Layout>
<Filename>exo-web-browser.desktop</Filename>
<Filename>exo-mail-reader.desktop</Filename>
<Separator/>
<Merge type="all"/>
<Separator/>
<Filename>ubuntu-software-center.desktop</Filename>
<Separator/>
<Filename>xfhelp4.desktop</Filename>
<Filename>xubuntu-website.desktop</Filename>
<Filename>xubuntu-contribute.desktop</Filename>
<Filename>xfce4-about.desktop</Filename>
<Filename>xfce4-session-logout.desktop</Filename>
</Layout>
<Menu>
<Name>Accessories</Name>
<Directory>xfce-accessories.directory</Directory>
<Include>
<Or>
<Category>Accessibility</Category>
<Category>Core</Category>
<Category>Legacy</Category>
<Category>Utility</Category>
</Or>
</Include>
<Exclude>
<Or>
<Filename>xfce4-about.desktop</Filename>
<Category>Settings</Category>
<Category>System</Category>
</Or>
</Exclude>
<Layout>
<Filename>xfce4-run.desktop</Filename>
<Filename>xfce4-appfinder.desktop</Filename>
<Separator/>
<Merge type="all"/>
</Layout>
</Menu>
<Menu>
<Name>Development</Name>
<Directory>xfce-development.directory</Directory>
<Include>
<Category>Development</Category>
</Include>
</Menu>
<Menu>
<Name>Education</Name>
<Directory>xfce-education.directory</Directory>
<Include>
<Category>Education</Category>
</Include>
</Menu>
<Menu>
<Name>Games</Name>
<Directory>xfce-games.directory</Directory>
<Include>
<Category>Game</Category>
</Include>
</Menu>
<Menu>
<Name>Graphics</Name>
<Directory>xfce-graphics.directory</Directory>
<Include>
<Category>Graphics</Category>
</Include>
</Menu>
<Menu>
<Name>Multimedia</Name>
<Directory>xfce-multimedia.directory</Directory>
<Include>
<Category>Audio</Category>
<Category>Video</Category>
<Category>AudioVideo</Category>
</Include>
</Menu>
<Menu>
<Name>Network</Name>
<Directory>xfce-network.directory</Directory>
<Include>
<Category>Network</Category>
</Include>
<Exclude>
<Or>
<Filename>exo-mail-reader.desktop</Filename>
<Filename>exo-web-browser.desktop</Filename>
</Or>
</Exclude>
</Menu>
<Menu>
<Name>Office</Name>
<Directory>xfce-office.directory</Directory>
<Include>
<Category>Office</Category>
</Include>
</Menu>
<Menu>
<Name>Settings</Name>
<Directory>xfce-settings.directory</Directory>
<Include>
<Category>Settings</Category>
</Include>
<Exclude>
<Or>
<Filename>exo-mail-reader.desktop</Filename>
<Filename>exo-web-browser.desktop</Filename>
</Or>
</Exclude>
<Layout>
<Filename>xfce-settings-manager.desktop</Filename>
<Separator/>
<Merge type="all"/>
</Layout>
</Menu>
<Menu>
<Name>System</Name>
<Directory>xfce-system.directory</Directory>
<Include>
<Or>
<Category>Emulator</Category>
<Category>System</Category>
</Or>
</Include>
<Exclude>
<And>
<Category>Settings</Category>
<Not><Category>PackageManager</Category></Not>
</And>
<Or>
<Filename>xfce4-session-logout.desktop</Filename>
<Filename>ubuntu-software-center.desktop</Filename>
</Or>
</Exclude>
</Menu>
<Menu>
<Name>Other</Name>
<Directory>xfce-other.directory</Directory>
<OnlyUnallocated/>
<Include>
<All/>
</Include>
<Exclude>
<Category>Settings</Category>
<Category>Screensaver</Category>
<Category>X-Xfce-Toplevel</Category>
</Exclude>
</Menu>
<DefaultMergeDirs/>
</Menu>
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thank you. I created the file with the content you posted and put it in /etc/xdg/... and rebooted, and now everything is back to normal. I deleted the files because I wanted the application menu to be in alphabetical order, some entries were out of place. Never again will I delete a file using shift+delete, from now on I will send it to the recycle bin first. Is there now an automatic way to mark this thread as solved, or should I manually edit post title?
Offline
Glad it worked.
Edit the first post and prepend [SOLVED] to the subject field.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanx, Toz! I'm running Fedora 25 with Xfce. I just had to reinstall, saving /home and I was trying to tidy up the menu a tad with Alacarte, but something went wrong. When I right-clicked on the desktop, the Applications Menu didn't show up, just a tiny white rectangle, and it didn't show up at all when I clicked on the menu button on the panel. I reinstalled xfce4-settings, logged out and back in, and everything is back. Now, on a side note, could I make a copy of the menu file in ~/.config and restore it if things go bad, or are there reasons not to do that?
Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.
Offline
Now, on a side note, could I make a copy of the menu file in ~/.config and restore it if things go bad, or are there reasons not to do that?
Yes you could. I would backup all the files in the ~/.config/menu folder (and subfolders if they exist).
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I tried another menu editor with the same results. Now, reinstalling xfce4-settings doesn't help. Reconstructing the .xml in /etc/xdg does nothing and doing both together is no help. I've completely lost my Settings and Administration menus and can't even get them back from a backup because I never backed that specific folder up. I do have a working version of Fedora 25 with Xfce on a thumb drive and can try transferring that version over, but if that fails, what else can I try?
Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.
Offline
No, that didn't work because the folder ~/.config/menu doesn't exist on that system. Weird.
Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.
Offline
The default xfce menu files are packaged in garcon and they sit in /etc/xdg/menus. However, some distros like to create their menu defaults. For example, Xubuntu puts theirs in /etc/xdg/xdg-xubuntu. I'm not sure if fedora creates it's own versions of the Xfce files or not.
If you know the name of the menu file that you are trying to restore, I believe you can do something like:
yum whatprovides <name_of_file>
...and it will tell you what package the file came from. You can then re-install that package (or download the package source and extract it).
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
I have no way of knowing which menu file I need restored, just that my Administration menu has only one, unnamed item on it and the Settings menu isn't showing up. And, BTW, Fedora hasn't used yum for at least two years; it's been replaced by dnf, largely because of the (not always accurate) belief that new must be better.
Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.
Offline
After posting, I logged out, switched to a text terminal and reinstalled xfce4-settings again. (This isn't an example of classic insanity, as it has worked in the past.) Then I logged back in, and things were back where they should be. I'm planning to back up tomorrow, so I'll add ~/.config to the list of things backed up so I have more than one way to recover from this. I just wish that I could find a menu editor that actually worked and didn't leave things in such an inconvenient state.
Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.
Offline
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 619.11 KiB (Peak: 652.39 KiB) ]