# AppImage does not show icon in task bar

**URL:** <https://discourse.appimage.org/t/appimage-does-not-show-icon-in-task-bar/40>\
**Category:** Creating AppImages\
**Created:** [August 14, 2016, 12:37pm UTC](https://discourse.appimage.org/t/appimage-does-not-show-icon-in-task-bar/40 "2016-08-14T12:37:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgarry](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/cgarry/32/114_2.png) [@cgarry](https://discourse.appimage.org/u/cgarry)\
**Post date:** [August 14, 2016, 12:37pm UTC](https://discourse.appimage.org/t/appimage-does-not-show-icon-in-task-bar/40/1 "2016-08-14T12:37:38Z")

</div>

Hi Simon,

I have made a lot of progress in creating an AppImage for my SER Player application. The one thing I have noticed is that the task bar at the bottom of the screen does not show SER Player’s icon when it is running, instead showing a default icon, This seems to be true on all distros that I have tried it on. Is this expected?

SER Player AppImage: [https://dl.dropboxusercontent.com/u/1139742/ser\_player\_debug/ser-player-x.x.x-glibc2.3-x86\_64.AppImage](https://dl.dropboxusercontent.com/u/1139742/ser_player_debug/ser-player-x.x.x-glibc2.3-x86_64.AppImage)

Snapshot of desktop showing missing icon in the task bar:  
 ![](https://canada1.discourse-cdn.com/flex027/uploads/appimage/original/1X/f77d6805cabd985a7b4d65f3beb291ee8b413f17.png)

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![probono](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/probono/32/81_2.png) [@probono](https://discourse.appimage.org/u/probono)\
**Post date:** [August 14, 2016, 12:47pm UTC](https://discourse.appimage.org/t/appimage-does-not-show-icon-in-task-bar/40/2 "2016-08-14T12:47:37Z")

</div>

How do you run the AppImage, execute it directly or through a `.desktop` file installed by the `desktopintegration` script? In the latter case, the icon should show up because the icon from the `.desktop` file is used. In the former case, it is a bit unpredictable because Ubuntu tries to determine the icon from the window of the application which in my experience works only half of the time.

---

<div class="post-metadata">

**Author:** ![cgarry](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/cgarry/32/114_2.png) [@cgarry](https://discourse.appimage.org/u/cgarry)\
**Post date:** [August 14, 2016, 12:57pm UTC](https://discourse.appimage.org/t/appimage-does-not-show-icon-in-task-bar/40/3 "2016-08-14T12:57:54Z")

</div>

I see the same icon whether I start it from the menu bar or by double-clicking on an AppImage. This is with Ubuntu MATE just in case that makes a difference.

---

<div class="post-metadata">

**Author:** ![probono](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/probono/32/81_2.png) [@probono](https://discourse.appimage.org/u/probono)\
**Post date:** [August 14, 2016, 2:43pm UTC](https://discourse.appimage.org/t/appimage-does-not-show-icon-in-task-bar/40/4 "2016-08-14T14:43:15Z")

</div>

In Qt, do you set an icon for the “SER Player” main window? (If you don’t, try doing it.)

By the way, on Ubuntu 16.04, when launching SER Player through the menu entry generated by the `desktopintegration` script, then the icon **is** shown for me.

---

<div class="post-metadata">

**Author:** ![cgarry](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/cgarry/32/114_2.png) [@cgarry](https://discourse.appimage.org/u/cgarry)\
**Post date:** [August 14, 2016, 5:56pm UTC](https://discourse.appimage.org/t/appimage-does-not-show-icon-in-task-bar/40/5 "2016-08-14T17:56:35Z")

</div>

I have never needed to call QApplication::setWindowIcon() in my application before, so I was not calling it. However, I added the setWindowIcon() call to the SER Player code and now the correct icon is shown in the task bar.

So once again Simon, thanks for your help!

---

<div class="post-metadata">

**Author:** ![probono](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/probono/32/81_2.png) [@probono](https://discourse.appimage.org/u/probono)\
**Post date:** [August 15, 2016, 9:18pm UTC](https://discourse.appimage.org/t/appimage-does-not-show-icon-in-task-bar/40/6 "2016-08-15T21:18:06Z")

</div>

> [@cgarry](#):
>
> QApplication::setWindowIcon()

Your’re welcome - I learned something here too: that the particular method in Qt is QApplication::setWindowIcon() 🙂
