Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Duplicate menu items

Help for Current Versions of MX
Post Reply
Message
Author
Safe_Ferret
Forum Novice
Forum  Novice
Posts: 8
Joined: Tue Sep 25, 2018 6:20 am

Duplicate menu items

#1 Post by Safe_Ferret » Thu Oct 11, 2018 6:07 am

Hi there, great distro. I installed steam and it appears twice in games and twice in internet menus, I cannot figure out how to get rid of the duplicates, when you go into menu editor, steam only appears once in internet and once in games. Any ideas how I can fix this please?

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1711
Joined: Wed Apr 11, 2018 5:09 pm

Re: Duplicate menu items

#2 Post by fehlix » Thu Oct 11, 2018 7:03 am

Safe_Ferret wrote:
Thu Oct 11, 2018 6:07 am
Hi there, great distro. I installed steam and it appears twice in games and twice in internet menus, I cannot figure out how to get rid of the duplicates, when you go into menu editor, steam only appears once in internet and once in games. Any ideas how I can fix this please?
Check if there are additional desktop-starter files for steam. Run this to check from the terminal command line (copy /paste + press enter)

Code: Select all

ls -l {/usr,~/.local}/share/applications/steam?*.desktop 2>&-
If there are some , remove them like this:

Code: Select all

sudo rm -v  {/usr,~/.local}/share/applications/steam?*.desktop 2>&-
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Safe_Ferret
Forum Novice
Forum  Novice
Posts: 8
Joined: Tue Sep 25, 2018 6:20 am

Re: Duplicate menu items

#3 Post by Safe_Ferret » Thu Oct 11, 2018 7:52 am

Thank you for your reply. Tried above in terminal and returned nothing. But the duplicates are still there.

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1711
Joined: Wed Apr 11, 2018 5:09 pm

Re: Duplicate menu items

#4 Post by fehlix » Thu Oct 11, 2018 8:40 am

Safe_Ferret wrote:
Thu Oct 11, 2018 7:52 am
Thank you for your reply. Tried above in terminal and returned nothing. But the duplicates are still there.
What would this show:

Code: Select all

grep -il 'steam'  {/usr,~/.local}/share/applications/*.desktop
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Safe_Ferret
Forum Novice
Forum  Novice
Posts: 8
Joined: Tue Sep 25, 2018 6:20 am

Re: Duplicate menu items

#5 Post by Safe_Ferret » Thu Oct 11, 2018 9:20 am

grep -il 'steam' {/usr,~/.local}/share/applications/*.desktop

/usr/share/applications/steam.desktop
/home/keith/.local/share/applications/steam.desktop

Above is the output:

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1711
Joined: Wed Apr 11, 2018 5:09 pm

Re: Duplicate menu items

#6 Post by fehlix » Thu Oct 11, 2018 9:41 am

Safe_Ferret wrote:
Thu Oct 11, 2018 9:20 am
grep -il 'steam' {/usr,~/.local}/share/applications/*.desktop

/usr/share/applications/steam.desktop
/home/keith/.local/share/applications/steam.desktop

Above is the output:
Hmme, not sure why you see two menu entries as the later of the two above shall only be visible.
I.e. the $HOME/.local/share/applications/steam.desktop entry shall overload the system entry /usr/share/applications/steam.desktop
within the menu system.
So I assume you have somewhere also steam related desktop entries:
This will check more:

Code: Select all

grep -il steam $(for D in ${XDG_DATA_DIRS//:/ }; do echo ${D}/applications/*.desktop; done) 2>&- | sort -u
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Safe_Ferret
Forum Novice
Forum  Novice
Posts: 8
Joined: Tue Sep 25, 2018 6:20 am

Re: Duplicate menu items

#7 Post by Safe_Ferret » Thu Oct 11, 2018 9:45 am

grep -il steam $(for D in ${XDG_DATA_DIRS//:/ }; do echo ${D}/applications/*.desktop; done) 2>&- | sort -u

/usr/share/applications/steam.desktop
/var/lib/flatpak/exports/share/applications/com.valvesoftware.Steam.desktop

Above is the output, thanks again for your help

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1711
Joined: Wed Apr 11, 2018 5:09 pm

Re: Duplicate menu items

#8 Post by fehlix » Thu Oct 11, 2018 10:00 am

Safe_Ferret wrote:
Thu Oct 11, 2018 9:45 am
grep -il steam $(for D in ${XDG_DATA_DIRS//:/ }; do echo ${D}/applications/*.desktop; done) 2>&- | sort -u

/usr/share/applications/steam.desktop
/var/lib/flatpak/exports/share/applications/com.valvesoftware.Steam.desktop

Above is the output, thanks again for your help
Well, you have one steam installed through MXPI popular apps
and another installation through flatpak.
So you have two Steam installs in parallel and by this also two menu entries.
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Safe_Ferret
Forum Novice
Forum  Novice
Posts: 8
Joined: Tue Sep 25, 2018 6:20 am

Re: Duplicate menu items

#9 Post by Safe_Ferret » Thu Oct 11, 2018 11:10 am

Thanks for your time and patience. I uninstalled the Flatpack version and all is good.
I have spent hours trying to sort this myself, thanks again such a daft error :)

Post Reply

Return to “MX Help”