Re: Icons on Linux
Jeroen van der Zijp <[email protected]>
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Organization | FOX Toolkit |
| Message-ID | <[email protected]> |
On Thu, 12 Aug 2021 14:41:03 +0200 Ingo Foerster <[email protected]> wrote: >I have a question about Fox-Toolkit and Icons. I do not know whether >this is a Fox-Toolkit issue. >However I compile the app on Windows, all Icons inside the Taskbar are shown. >If I compile the same app on Linux Ubuntu and start the app, there is >no icon inside the app and also not in the left hand bar. Just an >iconless entry that represents the window. > >I have created the resource (resources.h and resources.cpp) files with >reswrap.exe on Windows from ico files. The menu actions contain their >icon/image. > >Maybe someone can help out even if it is nothing about Fox-Toolkit. If >so, sorry to bother you. On Windows, you have an application-icon [say, myapp.ico]. To show in the task-bar and/or file explorer, you'd create a resource file and have the resource-compiler deal with it. It'll be combined into the .EXE as a special resource-section; your windows File Explorer knows how to extract the icons and show them. [FYI, PathFinder, through FXEXEIcon, will make a noble attempt at lifting icons from .exe files as well, even when running on Linux. There are typically more than one icon, and it may not always pick the correct one. If someone knows by what logic the icon is selected, we may try to implement that at some point]. On Linux, this works completely differently. In fact, it may depend on your desktop environment. Specifying an icon for the top-level window will cause your WM to show the correct icon in the taskbar. To get your icon on the desktop to launch your application, do something like below: On XFCE4, placing a file like: #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Encoding=UTF-8 Type=Application Name=Adie Comment= Categories=Application; Exec=/usr/local/bin/adie Icon=accessories-text-editor Terminal=false StartupNotify=false Path=/crypt/jeroen Seems to give you a launch-icon on your desktop. -- JVZ -- +----------------------------------------------------------------------------+ | Copyright (C) 18:00 08/ 7/2021 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+