Disable duplicate menu entries in Gnome Shell

Forum rules
Before you post please read this

Disable duplicate menu entries in Gnome Shell

Postby pfjap.paco on Tue Nov 29, 2011 1:09 am

Is there a way to disable duplicate menu entries in Gnome Shell?

I've narrowed down the cause of the duplicates to the .desktop files in /var/lib/menu-xdg/applications/menu-xdg. Deleting the entire folder seemed to do the trick, but after an upgrade, the icons popped right back. Is there an alternative method of removing the duplicate menu entries? I'm afraid that if I append "NoDisplay=True" to all of the files, it will just be erased after another upgrade. Perhaps there's a way to just keep that folder from being recreated?

Any help will be greatly appreciated.
"Even a dead thing can go with the stream, but only a living thing can go against it." - G.K. Chesterton

Dell Studio 1555 running Linux Mint 13 Maya LTS x86_64/Windows 7 x86/Ubuntu 12.04 Precise Pangolin LTS x86_64
User avatar
pfjap.paco
Level 1
Level 1
 
Posts: 26
Joined: Sun Nov 27, 2011 10:01 pm
Location: United States

Linux Mint is funded by ads and donations.
 

Re: Disable duplicate menu entries in Gnome Shell

Postby karashata on Tue Nov 29, 2011 12:52 pm

Uninstall the 'menu-xdg' package. It's not really necessary anymore and it will remove the duplicate entries permanently.
Linux Mint user since 2010, fluffy dragon forever!
Registered Linux User #473695
Image
User avatar
karashata
Level 4
Level 4
 
Posts: 441
Joined: Tue May 10, 2011 2:53 pm
Location: Stratford, Ontario, Canada

Re: Disable duplicate menu entries in Gnome Shell

Postby pfjap.paco on Tue Nov 29, 2011 5:25 pm

Hmm, ok, the only issue there is removing menu-xdg also removes the MATE session. It's not that I use the MATE session very much, but I would still like to keep it around. Would it work if I appended "OnlyShowIn=MATE;" to each file? Again, I'm just concerned that those changes will be erased in the event of an upgrade.
"Even a dead thing can go with the stream, but only a living thing can go against it." - G.K. Chesterton

Dell Studio 1555 running Linux Mint 13 Maya LTS x86_64/Windows 7 x86/Ubuntu 12.04 Precise Pangolin LTS x86_64
User avatar
pfjap.paco
Level 1
Level 1
 
Posts: 26
Joined: Sun Nov 27, 2011 10:01 pm
Location: United States

Re: Disable duplicate menu entries in Gnome Shell

Postby karashata on Tue Nov 29, 2011 5:34 pm

Ah, I was not aware of that...

Assuming you append them to the files in your /home/<your user name>/.config/menus folder, they shouldn't be overwritten by package updates. Appending them to the files in /etc/xdg/menus will result in them being overwritten by updates.

I'm not sure appending OnlyShowIn=MATE would help, as I believe that field is meant to specify one specific category that menu entries should show up in where the entry may have multiple categories, and not the desktop environment the entries should be used in.

Some more useful info might be here: http://developer.gnome.org/menu-spec/

Or perhaps here: http://standards.freedesktop.org/menu-s ... atest.html
Linux Mint user since 2010, fluffy dragon forever!
Registered Linux User #473695
Image
User avatar
karashata
Level 4
Level 4
 
Posts: 441
Joined: Tue May 10, 2011 2:53 pm
Location: Stratford, Ontario, Canada

Re: Disable duplicate menu entries in Gnome Shell

Postby pfjap.paco on Fri Dec 02, 2011 12:35 am

Hmm, ok, thanks for the help. I figure I'll just keep deleting menu-xdg whenever it pops up. It doesn't seem to hurt the MATE session :) I don't even understand why it's a dependency.
"Even a dead thing can go with the stream, but only a living thing can go against it." - G.K. Chesterton

Dell Studio 1555 running Linux Mint 13 Maya LTS x86_64/Windows 7 x86/Ubuntu 12.04 Precise Pangolin LTS x86_64
User avatar
pfjap.paco
Level 1
Level 1
 
Posts: 26
Joined: Sun Nov 27, 2011 10:01 pm
Location: United States

Re: Disable duplicate menu entries in Gnome Shell

Postby bimsebasse on Fri Dec 02, 2011 2:31 am

See section 1g in the Mint 12 Tips & Tricks Guide
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Disable duplicate menu entries in Gnome Shell

Postby aeronaut on Wed Dec 07, 2011 9:06 pm

I just came across this duplicate menu problem. I tried using alacart to remove the duplicates, but get this, I'd uncheck a box ...wait about 1/2 second, and the checkmark would reappear!!!!! I deleted the /var/lib/menu-xdg/applications/menu-xdg directory, and that worked. Wow.
aeronaut
Level 1
Level 1
 
Posts: 7
Joined: Thu Dec 01, 2011 6:43 pm

Re: Disable duplicate menu entries in Gnome Shell

Postby russ553 on Thu Dec 08, 2011 11:10 am

When unchecking items in alacarte, you need to burrow down into each and every subfolder, uncheck those items and then it will allow you to uncheck the main folder. By doing this in the Debian folder, you will eliminate the double icons.
Been there, done that, can't remember.
User avatar
russ553
Level 1
Level 1
 
Posts: 31
Joined: Fri Mar 18, 2011 5:26 pm

Re: Disable duplicate menu entries in Gnome Shell

Postby bimsebasse on Thu Dec 08, 2011 11:49 am

thanks russ553, can anyone confirm that this works? I remember struggling with it a bit, unchecked folders checked themselves, running alacarte as root didn't help much, and in the end I just deleted everything in Debian, but can't remember if I had to uncheck all subfolders first.
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Disable duplicate menu entries in Gnome Shell

Postby awi on Thu Dec 08, 2011 2:19 pm

These worked for me, thank you.
For the records, I'm not using MATE.

karashata wrote:Uninstall the 'menu-xdg' package. It's not really necessary anymore and it will remove the duplicate entries permanently.
awi
Level 1
Level 1
 
Posts: 13
Joined: Wed Nov 23, 2011 8:23 pm
Location: Asunción, Paraguay

Re: Disable duplicate menu entries in Gnome Shell

Postby bimsebasse on Thu Dec 08, 2011 3:53 pm

Removing the menu-xdg package doesn't harm MATE in any way?
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Disable duplicate menu entries in Gnome Shell

Postby bimsebasse on Thu Dec 08, 2011 8:31 pm

Btw - not to stir up anything or sound too drama queeny - but this duplication that keeps bugging users and spawning new threads in here, I added that as a bug on mint's launchpad few weeks back and it was immediately tagged "Opinon", which means whoever maintains the launchpad bug reporting don't think this is an issue that needs fixing. Go figure.
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Disable duplicate menu entries in Gnome Shell

Postby RichardM on Sat Dec 10, 2011 10:48 pm

karashata wrote:
Uninstall the 'menu-xdg' package. It's not really necessary anymore and it will remove the duplicate entries permanently.


Okay so I uninstalled this along with the others Synaptic said were necessary to uninstall as well, but NO difference. I rebooted to just see if that was it, but no difference.

Can anyone tell me why?
RichardM
Level 1
Level 1
 
Posts: 35
Joined: Sun Jan 16, 2011 6:27 pm

Re: Disable duplicate menu entries in Gnome Shell

Postby z06gal on Sat Dec 10, 2011 11:17 pm

russ553 wrote:When unchecking items in alacarte, you need to burrow down into each and every subfolder, uncheck those items and then it will allow you to uncheck the main folder. By doing this in the Debian folder, you will eliminate the double icons.



This is what I did and it worked beautifully :wink:
z06gal
Level 5
Level 5
 
Posts: 668
Joined: Sat Jun 13, 2009 7:16 pm

Re: Disable duplicate menu entries in Gnome Shell

Postby beachgardener on Sat Dec 17, 2011 7:35 am

thanks mate, had a case of the duplicate icons, installed alacarte, went through and deleted the un-needed, took about an hour. seems that there is lots of weird things happening in gnome 3 :)
beachgardener
Level 2
Level 2
 
Posts: 81
Joined: Sun Sep 19, 2010 10:22 pm
Location: Australia

Re: Disable duplicate menu entries in Gnome Shell

Postby bimsebasse on Sat Dec 17, 2011 1:43 pm

This bug is Mint 12 specific, though, and probably has to do with MATE interfering with MGSE.

I added the bug a month ago to Mint's launchpad where it was immediately labeled "Opinion" and now it's gone altogether - so either this won't get fixed or is already fixed :D
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Disable duplicate menu entries in Gnome Shell

Postby beachgardener on Tue Dec 20, 2011 2:22 am

thanks mate, i will be doing another install later on, see what happens, not sure but might have happened when i tried a couple different icon themes, they seemed to double up, anyway hope it is fixed :)
beachgardener
Level 2
Level 2
 
Posts: 81
Joined: Sun Sep 19, 2010 10:22 pm
Location: Australia

Re: Disable duplicate menu entries in Gnome Shell

Postby RichardM on Tue Dec 20, 2011 7:34 pm

By doing this in the Debian folder, you will eliminate the double icons


Okay, my Debian folder in alacarte is blank. What am I missing?
As per my post above removing the menu-xdg package didn't do a thing for me either.

Anyone?
RichardM
Level 1
Level 1
 
Posts: 35
Joined: Sun Jan 16, 2011 6:27 pm

Linux Mint is funded by ads and donations.
 

Return to Others

Who is online

Users browsing this forum: No registered users and 0 guests