Ubuntu 18.04: "Add to Favorites" missing for certain qt-based applications?
A convenient workaround for me was adding it to my favorites from the omnibar.
It is completely weird, unpredictable and unexpected UX.
I confirm your results on Ubuntu session (GNOME Shell) in Ubuntu 18.04 LTS and even with 19.10 (development version).
My first thought was that Exec
field pointed to some symbolic link, but all files declared in it are simple ELF executables.
What is also bad that these desktop-files do not have OnlyShowIn
directives...
I do not have this issue on Unity, MATE (using Mutiny panel layout) and Lubuntu sessions in 18.04 LTS and even with 19.10 (development version).
Also I'm able to dock these applications into Cairo-Dock, Docky and Plank.
So it is a bug in GNOME Shell.
I reported it as bug 1840474 to LaunchPad (really it is a duplicate of bug 1768609 from 2018-05-02).
The .desktop-file must have the identical WM_CLASS
as the opened program:
- for Dolphin:
dolphin.desktop
- for JabRef:
org.jabref.gui.JabRefMain.desktop
- for Maple:
java-lang-Thread.desktop
- for Eclipse:
eclipse.desktop
(according to https://unix.stackexchange.com/a/59654/241592 ) - for nemo
nemo.desktop
(not Files.desktop) - for academic MatlabR2020a:
MATLAB R2020a - academic use
The WM_CLASS
can be found with the command
xprop
for more details check https://askubuntu.com/a/1155956/676490 and https://unix.stackexchange.com/a/225409/241592