Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have uninstalled Wine and then reinstalled a few weeks later, now there is no Wine menu in the main menu. I can't get to anything Wine related.

How do I reset the menu so Wine shows up?

share|improve this question
    
Type winecfg in terminal..And let me see if it helps you.. –  karthick87 Dec 30 '10 at 20:32
    
Yes wine config opens, but I still have no wine menu. –  tufkab Dec 30 '10 at 20:50
    
Look at this –  karthick87 Dec 30 '10 at 21:04
    
That link did the trick, all wine menus are back. Thanks –  tufkab Dec 30 '10 at 21:14
add comment

2 Answers 2

up vote 2 down vote accepted

Rather than actually delete anything, menu editors on Linux simply mark menus as "Deleted" so that they don't show up in the menu. First, see if the directory is in your menu editor and can be re-enabled.

This information is stored in ~/.config/menus/applications.menu . Edit ~/.config/menus/applications.menu and you should find a section near the end that looks similar to this:

    <Menu>
            <Name>wine-wine</Name>
            <Deleted/>
    </Menu>

or perhaps this:

    <Menu>
            <Name>wine-wine</Name>
            <Menu>
                    <Name>wine-Programs</Name>
                    <Menu>
                            <Name>wine-Programs-AutoHotkey</Name>
                            <DirectoryDir>/home/user/.local/share/desktop-directories</DirectoryDir>
                    </Menu>
            </Menu>
            <Deleted/>
    </Menu>

Remove the <Deleted/> line and your Wine menu will reappear.

Source

share|improve this answer
    
That was it, Thanks karthick87! –  tufkab Dec 30 '10 at 23:47
add comment

First go to System → Preferences → Main Menu and make you sure there is item Wine and is't checked.

alt text

If there's no Wine entry, open Nautilus (ubuntu default file browser), press Crl+H to show hidden files/folders, goto .config/menus and delete here file application.menu -- Gnome will automatically recreate this file with default application menu configuration.

share|improve this answer
    
wine is not showing up there. Will I lose my custom shortcuts if I delete the application-menu? –  tufkab Dec 30 '10 at 20:49
    
Yes, you will. It's probably not the best solution... –  Vojtech Trefny Dec 30 '10 at 21:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.