Deleting Wine from Applications menu

Asked by Jim

I corrupted Wine to the extent that I un-installed it, deleted the .wine folder with all it's contents. However, the Wine menu and it's sub-menus still live in the Applications menu. The System Preferences Main Menu will not let me delete the Wine menu. I want to get rid of this before I try to re-install a windows program because I am afraid of what will happen when the installation finds it's menu already there. Any ideas?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Jim
Solved:
Last query:
Last reply:
Revision history for this message
Jim (angst37) said :
#1

I forgot to mention that I re-installed Wine without any apparent problem.

Revision history for this message
Josh Smith (saxsux) said :
#2

If you want to get rid of the menu and Alacarte can't help, try editing ~/.config/menus/applications.menu
You should be able to remove the Wine menu from it.

Revision history for this message
Jim (angst37) said :
#3

I'm sorry Josh, but I am a long-time Windows user and totally ignorant
of Ubuntu. My Package Manager shows alacarte installed but I cannot
find it. I tried to use the Terminal window with the string you sent
but I got the following:

jmangst@dell:~$ ~/.config/menus/applications.menu
bash: /home/jmangst/.config/menus/applications.menu: Permission denied
jmangst@dell:~$ sudo ~/.config/menus/applications.menu
Password:
sudo: /home/jmangst/.config/menus/applications.menu: command not found
jmangst@dell:~$

Can you clarify a bit?
Jim

On Fri, 2007-08-17 at 12:44 +0000, Josh Smith wrote:
> Your question #11636 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/11636
>
> Status: Open => Answered
>
> Josh Smith proposed the following answer:
> If you want to get rid of the menu and Alacarte can't help, try editing ~/.config/menus/applications.menu
> You should be able to remove the Wine menu from it.
>

Revision history for this message
Josh Smith (saxsux) said :
#4

Oh, sorry!
Alacarte is the menu editor.
In the path I gave you, ~ represents your home folder. .config is a hidden folder (any file or folder beginning . is hidden).
Just go to your home folder, go to the View menu > Show Hidden Files, open the .config folder, and then open the menu folder.
The applications.menu file is just a text file. If you double click on it, it should open in Gedit (the Text Editor). If you know (X)HTML the file should make reasonable sense to you.
If not, just look toward the bottom of the file for a reference to Wine and delete every from (and including) the <menu> tag before it to (and including) the </menu> tag after it.

I hope this makes more sense to you. :)

Revision history for this message
Jim (angst37) said :
#5

Thanks Josh. Now I get it. However, I discovered that Wine is not listed
in the text file. I also discovered if I go to System, Preferences,
Main Menu and delete the check mark next to the Wine folder icon, it
disappears from the Applications menu, but remains on the Main Menu (see
screen shots). This is ok but I would really like to get it out of the
Main Menu and out of my computer. I had already un-installed Wine and
deleted the .Wine folder from the hidden files list, but the menu
persists. However, if it there forever, I can live with it.
Jim

On Fri, 2007-08-17 at 18:14 +0000, Josh Smith wrote:
> Your question #11636 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/11636
>
> Status: Open => Answered
>
> Josh Smith proposed the following answer:
> Oh, sorry!
> Alacarte is the menu editor.
> In the path I gave you, ~ represents your home folder. .config is a hidden folder (any file or folder beginning . is hidden).
> Just go to your home folder, go to the View menu > Show Hidden Files, open the .config folder, and then open the menu folder.
> The applications.menu file is just a text file. If you double click on it, it should open in Gedit (the Text Editor). If you know (X)HTML the file should make reasonable sense to you.
> If not, just look toward the bottom of the file for a reference to Wine and delete every from (and including) the <menu> tag before it to (and including) the </menu> tag after it.
>
> I hope this makes more sense to you. :)
>

Revision history for this message
Jim (angst37) said :
#6

OK. Wine is now gone for good.

Revision history for this message
David E. Roy (dave4u2c) said :
#7

For future readers: I was looking through this post and found that if you delete any file(s) that has "wine-Programs-" in the path ~/.config/menus/ then the Wine menu in the Applications menu will be removed.