Page 1 of 1

Duplicate menu items

Posted: Thu Oct 11, 2018 6:07 am
by Safe_Ferret
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?

Re: Duplicate menu items

Posted: Thu Oct 11, 2018 7:03 am
by fehlix
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>&-

Re: Duplicate menu items

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

Re: Duplicate menu items

Posted: Thu Oct 11, 2018 8:40 am
by fehlix
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

Re: Duplicate menu items

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

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

Above is the output:

Re: Duplicate menu items

Posted: Thu Oct 11, 2018 9:41 am
by fehlix
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

Re: Duplicate menu items

Posted: Thu Oct 11, 2018 9:45 am
by Safe_Ferret
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

Re: Duplicate menu items

Posted: Thu Oct 11, 2018 10:00 am
by fehlix
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:

Re: Duplicate menu items

Posted: Thu Oct 11, 2018 11:10 am
by Safe_Ferret
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 :)