Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-14707

Qt Creator shows up two times in Gnome 3 favorites bar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 3.5.1
    • Component/s: Installer
    • Labels:
      None
    • Environment:
      Fedora Linux 22, x86_64, with Gnome Shell 3.16.2-1.fc22
    • Commits:
      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

        1. after.png
          after.png
          326 kB
        2. before.png
          before.png
          320 kB

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              con Eike Ziller
              Reporter:
              tiwoc Daniel Seither
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes