For some of my work websites, I need to use Edge and have the developer variety installed on my vanilla F43 system. After a recent update, I started seeing two icons in the GNOME Shell launcher and discovered there are two entries in /usr/share/applications; that is, I have a microsoft-edge-dev.desktop file and a com.microsoft.Edge.dev.desktop file.
The only difference in the two files is the following lines at the end of the com.microsoft.Edge.dev.desktop file:
# This is the same as microsoft-edge-dev.desktop except NoDisplay=true prevents
# duplicate menu entries. This is required to match the application ID
# used by XDG desktop portal, which has stricter naming requirements.
# The old desktop file is kept to preserve default browser settings.
NoDisplay=true
According to that note, the No-Display=true comment should make only one of the app icons show up in GNOME Shell overview; however, I have two.
I checked and I have lots of files that use NoDisplay=true, and they’re not listed in the Activities menu (dont’ seem to be, I haven’t checked them all).
No chance you also have similar files in ~/.local/share/applications?
I did that previously and it did, but Edge updated the other day and it came back. It sounds like one “solution” is to just delete one of them each time Edge updates, but that’s not really a solution.
Yeh, that’s not a solution at all. Could you share both the desktop files to we can have a look?
Are both icons always shown, or does a new one pop up when you run Edge? I.e., there’s only one with Edge is not running, but running it pops up a new one?
Never knew about that tool; interestingly it doesn’t like my quote style (been working fine cross-OSs years):
/home/espionage724/.local/share/applications/wine/Programs/Guild Wars 2/Guild Wars 2.desktop: error: value "'/bin/bash' -c "gio open ~/'Documents/Guild Wars 2/Screens'"" for key "Exec" in group "Desktop Action Screenshots" contains a reserved character ''' outside of a quote
No-Display=true had:
Guild Wars 2.desktop: error: file contains key "No-Display" in group "Desktop Entry", but keys extending the format should start with "X-"
X-No-Display=true didn’t show an error on desktop-file-validate but didn’t hide the launcher on Xfce. NoDisplay=true (no dash) works no-error and hides the launcher!
Thanks for that explanation and it led to more questions… My Edge’s desktop file isn’t in ~/.local/share/applications but your script seems to put it there. Also, I always thought (perhaps wrongly) that the “X” preceeding something referred to X11; no?
Maybe one last piece, why would Microsoft install two .desktop files in the first place?