Created attachment 104803 [details] TWO Digikam icons in the Gnome shell menu 1) Add Digikam in the Favorites of Gnome Shell 2) Launch Digikam Expected behaviour: there is ONE Digikam icon in the Gnome shell left menu (underlined with a blue line - meaning the program is running) Actual behaviour: there are TWO Digikam icons in the Gnome shell left menu (see attached screenshot) (note that the second only is underlined with a blue line)
Still valid with digikam 6.0 Beta2 from Appimage (Note - also valid with Fedora RPM's 5.9) Note that in the panel, with Appimage, these are 2 different icons: * the 1st (DK set in the favourite) is an undefined icon (see bug #381739) * the 2nd (running program) is a digikam icon Expected result: only one digikam icon (underlined in blue when program is running)
The issue is the lack of a StartupWMClass entry in your desktop file. It seems most KDE apps lack the entry. It's usually equal to your app name you set in your QApplication, and can also be queried using xprop WM_CLASS.
Hey, I was about to report this issue, but I found out it already existed. Apparently it has to do with the WM_class of the .desktop file, which is the one that is used to launch the program from a shortcut. It not only affects digikam, but many other software packed in .appimage format. Have a look: https://askubuntu.com/questions/403766/duplicate-icons-for-manually-created-gnome-launcher-items Basically, if the .desktop file contained the line StartupWMClass=digikam, it wouldn't show two separate icons for the launcher and for the program window. You can try for yourself by adding that line to the the digikam.desktop file.
Interresting. Do you seen the same duplicate icon with another KDE application as GWenview for ex, when it run under Gnome shell desktop ? Gilles Caulier
Look like Gwenview .desktop file do not contains WM_CLASS property : https://cgit.kde.org/gwenview.git/tree/app/org.kde.gwenview.desktop Gilles Caulier
It's the same for Dolphin file manager : https://cgit.kde.org/dolphin.git/tree/src/org.kde.dolphin.desktop Gilles Caulier
I grep in bugzilla if some KDE applications handle StartupWMClass desktop property, and yes i found some items, as krita or konsole : https://bugs.kde.org/show_bug.cgi?id=372441 https://bugs.kde.org/show_bug.cgi?id=402622 So we need to patch Showfoto and digiKam .desktop file in this way... Gilles Caulier
Git commit b8317a7c121f5fa407a9ba250615c7536c125f56 by Gilles Caulier. Committed on 03/02/2019 at 10:27. Pushed by cgilles into branch 'master'. add StartupWMClass property to desktop files Related: bug 376615, bug 381739, bug 375345 M +1 -0 core/app/main/org.kde.digikam.desktop M +1 -0 core/showfoto/main/org.kde.showfoto.desktop https://commits.kde.org/digikam/b8317a7c121f5fa407a9ba250615c7536c125f56
Git commit 473d13879eb43b868a4e072049141e04e0bdbcd3 by Gilles Caulier. Committed on 03/02/2019 at 10:31. Pushed by cgilles into branch 'development/dplugins'. add StartupWMClass property to desktop files Related: bug 376615, bug 381739, bug 375345 M +1 -0 core/app/main/org.kde.digikam.desktop M +1 -0 core/showfoto/main/org.kde.showfoto.desktop https://commits.kde.org/digikam/473d13879eb43b868a4e072049141e04e0bdbcd3
Well, that was quick. Thank you!
The appimage bundles are updated. Can you test on your computer ? https://files.kde.org/digikam/ Gilles Caulier
Here under Gnome shell, the native version work as expected, after to register digiKam as Favorites https://imgur.com/AVZAtiq Gilles Caulier
Same with AppImage 6.0.0 bundle generated today : https://imgur.com/VzkZcSo Gilles Caulier
I can confirm that it now works in version digikam-6.0.0-20190203T151814-x86-64.appimage, but it didn't in previous versions. I am using Ubuntu 18.04 LTS with the default Gnome desktop environment. By the way, I used AppImageLauncher to automatically "install" and create shortcuts for software in the appimage format.
yes, it's normal the desktop file patches was only included into digikam-6.0.0-20190203T151814-x86-64.appimage I close this file now. Gilles Caulier