can't add KDE apps to GNOME dock

Bug #1768609 reported by Justin Karneges
80
This bug affects 17 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Unknown
Unknown
gnome-shell (Ubuntu)
Confirmed
Undecided
Unassigned
gnome-shell-extension-ubuntu-dock (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

I clean installed Ubuntu 18.04 yesterday and noticed I couldn't add KDE apps to the GNOME dock. Basically, the "Add to Favorites" option is missing from the right-click menu of dock icons of currently-running KDE apps.

If I search for a KDE app using the "Show Applications" button, and right-click on an app in the search results before running it, that menu does contain "Add to Favorites". However, if this is used, the added app behaves incorrectly, in that clicking on its icon in the dock always launches a new instance rather than bringing any existing instance to the front.

Previously I used Ubuntu 14.04 (with Unity) and KDE apps could be added to the dock and managed as expected (i.e. clicking app icon when app is running brought it to the front).

Some searching around suggests this might be related to missing StartWMClass fields in the .desktop files of the KDE apps. I added StartWMClass=kate to /usr/share/applications/org.kde.kate.desktop and that seemed to fix the problem. However this didn't work for Konsole, so there might be more to fixing this in general.

I think this is probably either a KDE bug (they need to correct all their .desktop files?), a GNOME bug, or at the very least an Ubuntu-level regression in the Unity->GNOME transition that may justify taking action somewhere.

Tags: bionic focal
Paul White (paulw2u)
affects: ubuntu → gnome-shell-extension-ubuntu-dock (Ubuntu)
tags: added: bionic
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue looks similar to e.g https://bugzilla.gnome.org/show_bug.cgi?id=738672 and those applications probably need to be fixed

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: New → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :

@seb128
>The issue looks similar to e.g https://bugzilla.gnome.org/show_bug.cgi?id=738672 and those applications probably need to be fixed

GNOMEs Hell should be fixed, not the applications.

In all other desktops with dock - Unity, MATE (with Mutiny panel layout) - it works as expected.

tags: added: disco eoan
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Changed in ubuntu-meta (Ubuntu):
status: New → Confirmed
tags: removed: disco
Revision history for this message
minphr (lp723h) wrote :

I have managed to workaround this problem in Ubuntu 19.10
by creating a symlink inside directory /usr/share/applications
executed as root in terminal

ln -s org.kde.ksysguard.desktop ksysguard.desktop

ln -s org.kde.kexi-3.1.desktop kexi-3.1.desktop

the only side effect is that now they appear twice in installed applications menu

Revision history for this message
prkos (prkos) wrote :

For me on 19.10 the workaround of adding to Favorites by searching through the shell view works, as shown in this answer:

https://askubuntu.com/questions/1166171/ubuntu-18-04-add-to-favorites-missing-for-certain-qt-based-applications#answer-1223635

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Is this a problem in Ubuntu 20.04?

tags: removed: eoan
Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Confirmed → Incomplete
Changed in ubuntu-meta (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Paul White (paulw2u) wrote :

Daniel, the results of some brief tests installing applications such as kate, konsole, konversation and krusader were not consistent with respect to adding to and removing from the dock as a favourite.

Some applications gave me both the add and remove options, one application gave just a remove option while another gave me neither option.

The work around of right clicking on a search result worked for all the applications that I tested while using Ubuntu 20.04.1.

tags: added: focal
Revision history for this message
Paul White (paulw2u) wrote :

Apologies, to clarify comment #9, the inconsistent results were when right clicking on the dock icon.

Changed in gnome-shell (Ubuntu):
status: Incomplete → Confirmed
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Incomplete → Confirmed
no longer affects: ubuntu-meta (Ubuntu)
Revision history for this message
Johannes Kalliauer (jokalliauer1989) wrote :

The user can make a workaround, by using the <filename>.desktop the same as the `WM_CASS` (returned by the command `xprop`).

e.g.
- for Doplin use `dolphin.desktop`
- for JabRef use `org.jabref.gui.JabRefMain.desktop`

source&details: https://askubuntu.com/a/1347954/676490

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.