Icon for application not showing in Taskbar button

  1. 5 months ago

    Wes W

    May 15 Pre-Release Testers, Xojo Pro MD, Columbia USA
    Edited 5 months ago

    Can someone tell me what I need to do to make my application's icon appear on the taskbar button when my app is running?

    I always get the default/generic icon as shown below (red arrow added for emphasis):

    -image-

    I have several icons (various size .png files) defined in the Appearance/Icon panel of my application (I'm assuming that's where you should put the icons) but they don't seem to be getting picked up by Raspbian. I have these icon sizes defined: 512, 256, 128, 32, and 16. Do I need 1024 and 48 also?

    -Wes

  2. William R

    May 15 Pre-Release Testers, Xojo Pro Irvine, California USA

    Hi Wes, have you created the ".desktop" file in the Raspian environment? Tell me if that makes no sense, or if you've never heard of such a file, and I'll be happy to give you my quick brain dump on it.

  3. Wes W

    May 15 Pre-Release Testers, Xojo Pro MD, Columbia USA
    Edited 5 months ago

    @WilliamReynolds Hi Wes, have you created the ".desktop" file in the Raspian environment? Tell me if that makes no sense, or if you've never heard of such a file, and I'll be happy to give you my quick brain dump on it.

    Yes, I have a .desktop file in two places.

    In:
    /home/pi/.config/autostart/swift-timeclock.desktop

    Contents:

    [Desktop Entry]
    Name=Swift Timeclock
    Comment=Swift Biometric Timeclock System
    Exec=/home/pi/swift/timeclock/timeclock
    Icon=/home/pi/swift/timeclock/appicon_32.png
    Terminal=false
    Type=Application
    Categories=Utility;
    StartupNotify=true

    And in:
    /usr/share/applications/swift-timeclock.desktop

    Contents:

    [Desktop Entry]
    Name=Swift Timeclock
    Comment=Swift Biometric Timeclock System
    Exec=/home/pi/swift/timeclock/timeclock
    Icon=/home/pi/swift/timeclock/appicon_32.png
    Terminal=false
    Type=Application
    Categories=Utility;
    StartupNotify=true

    Raspbian seems to use the specified icon (the blue fingerprint icon next to the Raspbian Start button) for the application shortcut in the launch-bar and the accessories menu but not in the taskbar application button.

    -Wes

or Sign Up to reply!