Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 3.5.1
-
None
-
Fedora Linux 22, x86_64, with Gnome Shell 3.16.2-1.fc22
-
cfbc780a20af30f143286465c7c38135d87a5491
Description
(edit: Sorry, I accidentally created this issue before finishing the description. The description is now finished.)
I added Qt Creator (installed via Qt online installer) as a favorite in Gnome 3 so that it is always shown in the launcher, even if it is not currently running. When I now start Qt Creator, an additional icon is shown in the launcher (see before.png). And when I click the first icon again, a second instance of Qt Creator is launched.
Expected behavior: Only one instance is launched, and it does not add an additional icon.
Fix: Add the following line to the .desktop file of Qt Creator, located in ~/.local/share/applications/DigiaQt-qtcreator-community.desktop:
StartupWMClass=qtcreator
Now, Gnome 3 can detect that the Qt Creator window belongs to the starter icon and switch to the running app instead of launching a new instance on click.
See also: http://askubuntu.com/questions/367396/what-represent-the-startupwmclass-field-of-a-desktop-file
Attachments
Issue Links
- replaces
-
QTCREATORBUG-17974 Qt Creator window is not associated to its .desktop application correctly in GNOME Shell
- Closed
For Gerrit Dashboard: QTCREATORBUG-14707 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
192324,2 | Qt Creator: Fix that windows did not associate with desktop shortcut | master | qtsdk/qtsdk | Status: MERGED | +2 | 0 |
192339,2 | Qt Creator: Fix that windows did not associate with desktop shortcut | master | qtsdk/tqtc-qtsdk | Status: MERGED | +2 | 0 |
236284,2 | Fix Linux WMClass also for standalone desktop file | 4.7 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |