SOLVED - Wine in Menu - Want to remove it from Menu

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
AZgl1800
Level 20
Level 20
Posts: 11183
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

SOLVED - Wine in Menu - Want to remove it from Menu

Post by AZgl1800 »

This laptop is so short on resources, it won't run anything in Wine,

I have removed Wine via Software Manager,

however, it is still in the menu.......... how to I get rid of that?
Wine in Menu.png
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
ArtGirl

Re: Wine in Menu - Want to remove it from Menu

Post by ArtGirl »

Hi :)

Code: Select all

sudo apt-get purge wine
... copy/paste into terminal, just to remove any stray bits.
Right-click, uninstall, you've probably already done.
michael louwe

Re: Wine in Menu - Want to remove it from Menu

Post by michael louwe »

sudo apt-get remove --purge wine

rm -rf ~/.wine

sudo apt-get auto remove
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Wine in Menu - Want to remove it from Menu

Post by Termy »

michael louwe wrote:sudo apt-get remove --purge wine

rm -rf ~/.wine

sudo apt-get auto remove
The -f is likely not necessary there, and it's autoremove, by the way. You can actually go a step further: sudo apt-get remove --purge --autoremove ^wine{,-\*} to really nuke it. Optionally, purge --autoremove, instead of remove --purge --autoremove; up to you.
I'm also Terminalforlife on GitHub.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11183
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Wine in Menu - Want to remove it from Menu

Post by AZgl1800 »

Being as I have a very high aggressive nature :mrgreen:

I selected sudo apt-get remove --purge --autoremove ^wine{,-\*}

and wow, did that ever clean house.

Much appreciated for all of the advice, I have added all of this to my Documentation for future use.

However, it is still showing in the Menu

https://i.imgur.com/vmZnTgp.png

do I have to reboot to get rid of that display?
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
AZgl1800
Level 20
Level 20
Posts: 11183
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Wine in Menu - Want to remove it from Menu

Post by AZgl1800 »

I did a reboot and it is still yet showing in the menu.

and I have "supposedly removed all the programs it is showing"


https://i.imgur.com/xFglwuu.png
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Wine in Menu - Want to remove it from Menu

Post by Termy »

Okidoke. lol It's just a rogue menu entry and not due to the program loitering about. You'll want to open the menu editor to remove it yourself. Run cinnamon-menu-editor (I've no idea where it is in the menu, as I don't see it) in a terminal, and use that to remove the Wine entry yourself.

EDIT: Oh wow, I'm blonde. It's showing that entry because you've got a ton of Windows programs installed. Menu entries work by showing only when there are valid entries within that menu. If you really want that main Wine entry gone, you'd have to remove, or untick all of the entries within it, using the above program.
I'm also Terminalforlife on GitHub.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Wine in Menu - Want to remove it from Menu

Post by Flemur »

AZgl1500 wrote:I did a reboot and it is still yet showing in the menu.
LOL. Sorry!
and I have "supposedly removed all the programs it is showing"
You might also want to

Code: Select all

rm ~/.local/share/applications/wine-extension*.desktop
which are windows programs that wine associates with linux files, e.g. open an htm file with Internet-exploder....they might also be causing stuff to show up in the menu.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
AZgl1800
Level 20
Level 20
Posts: 11183
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Wine in Menu - Want to remove it from Menu

Post by AZgl1800 »

Flemur wrote:
AZgl1500 wrote:I did a reboot and it is still yet showing in the menu.
LOL. Sorry!
and I have "supposedly removed all the programs it is showing"
You might also want to

Code: Select all

rm ~/.local/share/applications/wine-extension*.desktop
which are windows programs that wine associates with linux files, e.g. open an htm file with Internet-exploder....they might also be causing stuff to show up in the menu.
Okay,
I went through and removed each Wine/sub-menu item one by one, until I got to this last one and I can't remove it.

https://i.imgur.com/3voHjC6.png

I get this message:

https://i.imgur.com/QGBkjum.png


I went to terminal and entered that command and got a bit scared of the "gksu -m" because I was not sure which part of the menu is going to disappear if I issue that command in Terminal w/o prefacing some thing prior to the command to specify "which menu item I want gone".

It would be a disaster to just loose the whole entire menu structure.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Wine in Menu - Want to remove it from Menu

Post by Termy »

Looks like a bug in the gksu call. I'd say running that command looks safe enough to me, since it seems to just remove that .desktop file. In-fact, I'm not sure why it doesn't just point to rm, and I don't get why it needs root access when it's only removing a .desktop file in /home! Ah well. Maybe someone can clear the confusion there. In any case, I'm sure you'd be fine removing or moving the file mentioned in the error message yourself, just, my recommendation, move it elsewhere safe for now, just in-case you'll need the file later.

By the way, gksu and gksudo are just GUI front-ends to su and sudo, respectively. Basically, instead of prompting the user for the password on a terminal, it does it via handy-dandy GUI windows.
I'm also Terminalforlife on GitHub.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Wine in Menu - Want to remove it from Menu

Post by Flemur »

AZgl1500 wrote:I went through and removed each Wine/sub-menu item one by one, until I got to this last one and I can't remove it.
https://i.imgur.com/3voHjC6.png

I get this message:
https://i.imgur.com/QGBkjum.png
It looks like you made a typo somewhere with an extra (or missing) single quote (=').
And it might be because the filename has a single quote in it (a really terrible idea!): "What'sNew.desktop"

You're running a menu editor, correct? (I don't run Cinnamon).
And when it's talking about "uninstalling" or "removing" applications it's really just removing them from the menu...?
Because you don't have wine installed or any wine applications left, correct?

If wine is not installed and you've removed ~/.wine, try this:

Code: Select all

rm -r ~/.local/share/applications/wine*
and see if the menu is better.

In fluxbox this stuff is as trivially easy as it should be - one reason why I love it!
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
AZgl1800
Level 20
Level 20
Posts: 11183
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Wine in Menu - Want to remove it from Menu

Post by AZgl1800 »

Flemur wrote:
AZgl1500 wrote:
If wine is not installed and you've removed ~/.wine, try this:

Code: Select all

rm -r ~/.local/share/applications/wine*
and see if the menu is better.

In fluxbox this stuff is as trivially easy as it should be - one reason why I love it!
Yes, I think I errored in just uninstalling Wine before uninstalling the applications that it had installed.

But you have fixed my minor irritation.

the command you provided, did not even give any appearance of having done anything:
https://i.imgur.com/MOoOf1F.png


But, it obviously did the job:
https://i.imgur.com/b0aGqvb.png


Thank all of you so very much.
John
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Wine in Menu - Want to remove it from Menu

Post by Flemur »

AZgl1500 wrote:the command you provided, did not even give any appearance of having done anything:
That's normal if it worked correctly. You can add "-v" for "verbose":

Code: Select all

$ $ rm a
rm: cannot remove 'a': No such file or directory
$ echo "hello" > a
$ rm a
$  [nothing returned]
$
$ echo "hello" > a
$ rm -v a
removed 'a'
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
AZgl1800
Level 20
Level 20
Posts: 11183
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: SOLVED - Wine in Menu - Want to remove it from Menu

Post by AZgl1800 »

ah so, my education in Linux is still going on :lol:


I reissued that command with -v and it did this:

john@john-TP500LA ~ $ rm -r -v ~/.local/share/applications/wine*
rm: cannot remove '/home/john/.local/share/applications/wine*': No such file or directory
john@john-TP500LA ~ $


Thank you,
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: SOLVED - Wine in Menu - Want to remove it from Menu

Post by Termy »

That's because the file is now gone. And yay! Glad it's all sorted for you, at long last. No more WINE for you! You've clearly had enough. :P
I'm also Terminalforlife on GitHub.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11183
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: SOLVED - Wine in Menu - Want to remove it from Menu

Post by AZgl1800 »

Termy wrote:That's because the file is now gone. And yay! Glad it's all sorted for you, at long last. No more WINE for you! You've clearly had enough. :P
:lol: :lol: :lol: :wink:

Thanks for you help, we lost a tree out in the yard this morning, high winds are here...

https://i.imgur.com/PKX7pSK.jpg


https://i.imgur.com/w0AOVfs.jpg
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
Locked

Return to “Beginner Questions”