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

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
AZgl1500
Level 9
Level 9
Posts: 2594
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 AZgl1500 » Sun Jan 21, 2018 10:37 pm

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
Wine in Menu.png (23.46 KiB) Viewed 339 times
Last edited by AZgl1500 on Mon Jan 22, 2018 4:37 pm, edited 1 time in total.

User avatar
ArtGirl
Level 4
Level 4
Posts: 392
Joined: Sat Apr 15, 2017 1:16 pm
Location: UK

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

Post by ArtGirl » Mon Jan 22, 2018 3:52 am

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.
18.3 Mate 64bit
Radeon R9 255, Mesa 17.2.8, 4.15.0-13,
Lenovo x310, intel i7-4790, 16 ram,
Ugee 2150


For any advice I've been able to add, eg re graphics tablets, please search forum.

Image

User avatar
michael louwe
Level 9
Level 9
Posts: 2690
Joined: Sun Sep 11, 2016 11:18 pm

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

Post by michael louwe » Mon Jan 22, 2018 5:28 am

sudo apt-get remove --purge wine

rm -rf ~/.wine

sudo apt-get auto remove

User avatar
Termy
Level 5
Level 5
Posts: 762
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

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

Post by Termy » Mon Jan 22, 2018 10:50 am

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.
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

User avatar
AZgl1500
Level 9
Level 9
Posts: 2594
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 AZgl1500 » Mon Jan 22, 2018 11:16 am

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?

User avatar
AZgl1500
Level 9
Level 9
Posts: 2594
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 AZgl1500 » Mon Jan 22, 2018 11:34 am

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

User avatar
Termy
Level 5
Level 5
Posts: 762
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

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

Post by Termy » Mon Jan 22, 2018 12:24 pm

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.
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

User avatar
Flemur
Level 16
Level 16
Posts: 6109
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

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

Post by Flemur » Mon Jan 22, 2018 1:58 pm

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?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
AZgl1500
Level 9
Level 9
Posts: 2594
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 AZgl1500 » Mon Jan 22, 2018 3:01 pm

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.

User avatar
Termy
Level 5
Level 5
Posts: 762
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

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

Post by Termy » Mon Jan 22, 2018 3:25 pm

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.
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

User avatar
Flemur
Level 16
Level 16
Posts: 6109
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

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

Post by Flemur » Mon Jan 22, 2018 3:43 pm

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?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
AZgl1500
Level 9
Level 9
Posts: 2594
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 AZgl1500 » Mon Jan 22, 2018 4:36 pm

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

User avatar
Flemur
Level 16
Level 16
Posts: 6109
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

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

Post by Flemur » Mon Jan 22, 2018 4:45 pm

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?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
AZgl1500
Level 9
Level 9
Posts: 2594
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 AZgl1500 » Mon Jan 22, 2018 4:49 pm

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,

User avatar
Termy
Level 5
Level 5
Posts: 762
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 » Mon Jan 22, 2018 6:56 pm

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
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

User avatar
AZgl1500
Level 9
Level 9
Posts: 2594
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 AZgl1500 » Mon Jan 22, 2018 7:04 pm

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

Post Reply

Return to “Newbie Questions”