Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Icon in Task Bar Ubuntu 20.04 LTS #3330

Closed
llbaker302 opened this issue Oct 30, 2021 · 5 comments
Closed

Missing Icon in Task Bar Ubuntu 20.04 LTS #3330

llbaker302 opened this issue Oct 30, 2021 · 5 comments
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user OS: Linux

Comments

@llbaker302
Copy link

Icon missing using latest appimage

neofetch below:

        .-/+oossssoo+/-.               loz@loz-ubuntu 
    `:+ssssssssssssssssss+:`           -------------- 
  -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.3 LTS x86_64 
.ossssssssssssssssssdMMMNysssso.       Host: KPL-W0X M1D 

/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.11.0-38-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 7 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 1872 (dpkg), 8 (flatpak), 11 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.0.17
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080, 3440x1440
ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: GNOME
ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: Adwaita
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Yaru-dark [GTK2/3]
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: Yaru [GTK2/3]
+sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: gnome-terminal
/ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (8) @ 2.000GHz
.ossssssssssssssssssdMMMNysssso. GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
-+sssssssssssssssssyyyssss+- Memory: 3188MiB / 6850MiB
:+ssssssssssssssssss+:
.-/+oossssoo+/-.

image

@llbaker302 llbaker302 added the issue-report An issue reported by a user. label Oct 30, 2021
@Felanbird Felanbird added bug Something isn't working as intended, or works in a confusing/unintuitive way for the user OS: Linux and removed issue-report An issue reported by a user. labels Oct 30, 2021
@goldbattle
Copy link
Contributor

This is basically due to AppImage not really having support for icons.
AppImage/AppImageKit#346

To get the desktop file to actually be installed with the icon you need another tool it seems.
Probably would be good to have this on the wiki or website someplace for users.
https://github.com/TheAssassin/AppImageLauncher
https://github.com/TheAssassin/AppImageLauncher/wiki/Install-on-Ubuntu-or-Debian

@digidigital
Copy link

digidigital commented Jan 30, 2022

I had a similar issue with my PyQt5-AppImage application. The solution was to set the icon with Qt. So at least in the Task Bar there is a proper icon.

It's python code but I think you get the idea.

# Path(s) to file(s)        
icon256=os.path.join(self.scriptRoot, 'icons', 'appicon256.png')
...
# Create QIcon Object
windowIcon=QIcon()
# Add icon(s) in one ore more different resolutions.
windowIcon.addFile(icon256,(QSize(256,256)))
...
# Set Icon ("self" is the application's QMainWindow)
self.setWindowIcon(windowIcon)

You can shorten the code but I add multiple resolutions with .addFile so I keep everything separate :)

@pajlada
Copy link
Member

pajlada commented Jan 30, 2022

Can try the AppImage produced by this #3554 to see if it fixes it - I don't have a non-i3 Linux setup to test it

@zneix
Copy link
Collaborator

zneix commented Jan 30, 2022

Tested GH-3330 and it seems to do the job just fine
Pretty sure that in the latest nightly build the issue should be fixed. If there's any further problems with the icon feel free to comment below though!

gj pajlada, icons work

@pajlada
Copy link
Member

pajlada commented Jan 30, 2022

Fixed by #3554 - feel free to reopen if you think it's wrong.

@pajlada pajlada closed this as completed Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user OS: Linux
Projects
None yet
Development

No branches or pull requests

6 participants