Score:0

How to fix an app appearing twice in my application list

eg flag

I have VLC appearing twice on my app list using Gnome desktop on Ubuntu 20.04.I had VLC installed but the app wouldn't launch whenever I tried to. I decided to reinstall VLC,then VLC started appearing twice in my application list (one shortcut working fine and not the other).

Following MadcapJake advice on reddit, I typed: xprop WM_CLASS and clicked on the vlc tab.

The result was : WM_CLASS(STRING) = "vlc", "vlc"

Then I typed: "vlc" StartupWMClass

It resulted in:

VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.

filesystem stream error: cannot open file /home/nao/StartupWMClass (No such file or directory)
QObject::~QObject: Timers cannot be stopped from another thread
Score:1
eg flag

SOLUTION : There was another .desktop file related to VLC but not placed in the common application folder usually located in usr/share/applications The problematic file was located into var/lib/snapd/desktop/applications

You can find the location of the problematic file by following vanadium answer on this post

Once you know where it is, remove the app (VLC)

sudo apt-get remove --purge vlc

sudo apt-get autoremove

sudo apt-get autoclean

Then you get into the repertory where the file is located by using :

cd /var/lib/snapd/desktop/applications 

(or any other path that your find command prompted you)

then you remove the file and reinstall :

sudo rm vlc_vlc.desktop 

sudo apt-get install vlc
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.