Discussion:
[mitk-users] Linux icon
Nil Goyette
8 years ago
Permalink
Hi all,

We found that there's no icon in our linux executable. There's one on
Windows and OS X but on Linux it's a "?" or a black square with a
"forbidden" red circle. I searched in the cmake file but there's
strangely not much about icons and there's no ".desktop" file so the
icon is probably set in Qt somewhere. Do you know who are the usual
suspects for a missing icon? Where should I check?

Nil
Sascha Zelzer
8 years ago
Permalink
Hi,

what icon location are we talking about? If it is the icon in the window
decoration, this is set via some Qt API, if I remember correctly, and
should work on all three platforms.

If it is about the icon in some desktop environment menu or shortcut,
there is no "desktop entry file" provided with MITK AFAIK (for Windows,
there is an embedded .ico file in the executable itself and on MacOS
there should be a Info.plist file in the application bundle).

- Sascha
...
Nil Goyette
8 years ago
Permalink
Hi Sascha,

I'm talking about the icon in the taskbar (vertical in Unity, horizontal
on most other). When I open the Workbench, I can see the blue "M" icon
on a white background. When I open my app, it's a default icon choosen
by the OS. Only on Linux.

Anyway, while writing this message, I searched more and fixed the
problem :) Turns out that the advisor->SetWindowIcon line was commented
in my WorkbenchAdvisor, probably by myself months ago, when I realized
that it was doing "nothing". I was wrong.

Thank you for your time.

Nil
...
Loading...