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

no icon on taskbar onwayland #389

Open
userofryzen opened this issue Sep 3, 2022 · 43 comments
Open

no icon on taskbar onwayland #389

userofryzen opened this issue Sep 3, 2022 · 43 comments

Comments

@userofryzen
Copy link

Steps to reproduce

  1. open kotatogram on wayland session( at least, I have not tested on xorg yet)

Expected behaviour

having the icon from kotatogram in all places including taskbar

Actual behaviour

1 open kotatogram
2. the icon of kotatogram is missing
imagen
But in tray there is the correct icon, I have test too the telegram icon and it's correct too.
In addition I have been a few days using and ever have worked such icon but.. Idk maybe it's not a bug or something.

Operating system

Manjaro stable on latest updates with plasma wayland

Version of Kotatogram Desktop

1.4.9 from https://aur.archlinux.org/packages/kotatogram-desktop-bin

Installation source

Other (unofficial) source

Logs

No response

@ilya-fedin
Copy link
Contributor

Can you try the build from GitHub?

@userofryzen
Copy link
Author

qt.qpa.wayland: EGL not available
error: : cannot open
error: : cannot open
error: : cannot open
QOpenGLWidget: Failed to create context
qt.svg: Error while inflating gzip file: SVG format check failed

the logs of konsole

@userofryzen
Copy link
Author

Can you try the build from GitHub?

what build? I mean, what from those flat.. give me a link sorry

@ilya-fedin
Copy link
Contributor

@userofryzen
Copy link
Author

https://github.com/kotatogram/kotatogram-desktop/releases

https://github.com/kotatogram/kotatogram-desktop/releases/download/k1.4.9/1.4.9-linux.tar.xz if you mean this exactly it gives me the same problem no icon on taskbar. The simple and "standard" icon for an app that has no icon on wayland that I see a few times more.

@userofryzen
Copy link
Author

userofryzen commented Sep 3, 2022

QT_QPA_PLATFORM=xcb kotatogram-desktop
error: : cannot open
error: : cannot open
error: : cannot open
qt.svg: Error while inflating gzip file: SVG format check failed
QCoreApplication::postEvent: Unexpected null receiver
QObject::~QObject: Timers cannot be stopped from another thread
pure virtual method called
terminate called without an active exception
Abortado (`core' generado)
Okey, I have tested with xcb(xwayland) and the icon is working so the problem resides only on the wayland side. It's a bug, are you using wayland session? or maybe xorg one?

@ilya-fedin
Copy link
Contributor

if you mean this exactly it gives me the same problem no icon on taskbar.

But you say you're using kotatogram-desktop-bin, not the binary from tar.xz

@userofryzen
Copy link
Author

if you mean this exactly it gives me the same problem no icon on taskbar.

But you say you're using kotatogram-desktop-bin, not the binary from tar.xz

the aur package is one that I have tested before and gives me the same problem, I have tested the another ones that is build on github like you said, from the URL I gave to you and.. the Same problem.
can't you reproduce the problem?
The problem happens on wayland plasma session but not on xorg.

@ilya-fedin
Copy link
Contributor

the aur package is one that I have tested before and gives me the same problem, I have tested the another ones that is build on github like you said, from the URL I gave to you and.. the Same problem.

I don't quite understand, have you checked just unarchiving and launching AppImage or not? Without any AUR packages.

can't you reproduce the problem?

It's hard for me to setup environment to reproduce. Would be nice if you tested the archive. Any re-packages like kotatogram-desktop-bin aren't the same.

@userofryzen
Copy link
Author

the aur package is one that I have tested before and gives me the same problem, I have tested the another ones that is build on github like you said, from the URL I gave to you and.. the Same problem.

I don't quite understand, have you checked just unarchiving and launching AppImage or not? Without any AUR packages.

can't you reproduce the problem?

It's hard for me to setup environment to reproduce. Would be nice if you tested the archive. Any re-packages like kotatogram-desktop-bin aren't the same.

yeah I have done that without any aur package.

I have tested both of them, the repackage from aur and the another one from github, both of them make me the same thing, no icon on taskbar

@ilya-fedin
Copy link
Contributor

Can you provide the log.txt from application data directory?

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Sep 3, 2022

Oh, forgot to mention that you need clean the data before launching the AppImage for it to detect first launch and integrate in the system. Otherwise such problems are expected.

@userofryzen
Copy link
Author

@ilya-fedin how to clean the data ? so I can test it for you but the expected thing for me is that such problem is yet here.
But tell me and Ill test.
But pls tell me everything so I can do all the things at the same time

@ilya-fedin
Copy link
Contributor

you can open the folder by entering viewlogs cheat code

@userofryzen
Copy link
Author

yeah, cleaning was the fix for the github one. Idk why on wayland fails such package. Ill report to aur then.
I ll be using another one that is https://aur.archlinux.org/packages/kotatogram-desktop-beta-dynamic-bin
personally I don't see differents. Wich I should use ?

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Sep 3, 2022

On Wayland, there's no such thing as 'window icon', so compositors just display the icon from the desktop file. If the package doesn't have the icon, it means desktop file name is not synchronized with what application expects. What application expects is logged to the log.txt.

@userofryzen
Copy link
Author

I have reported it so.. let's wait.
Thanks!

@userofryzen
Copy link
Author

log.txt
Flatpak stable package the same error as shown before, no icon.

@userofryzen
Copy link
Author

log.txt
The aur ones that is called kotatogram-desktop-bin
No icon either

@ilya-fedin
Copy link
Contributor

Are you sure flatpak is properly integrated into your system? I.e. do you see Kotatogram item in the system menu?

@ilya-fedin
Copy link
Contributor

The aur ones that is called kotatogram-desktop-bin

According to the log, its .desktop file should have name appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop.desktop in order for the integration to work.

@userofryzen
Copy link
Author

log.txt
the ones that is downloaded by the official website.
And Ill see again the flatpak wait a moment

@userofryzen
Copy link
Author

Are you sure flatpak is properly integrated into your system? I.e. do you see Kotatogram item in the system menu?

No, there is not because it's appearing a general window icon on both tray and taskbar

@userofryzen
Copy link
Author

The aur ones that is called kotatogram-desktop-bin

According to the log, its .desktop file should have name appimagekit_d2192f48ebc43a9db26e1dfa2bc5097b-Kotatogram_Desktop.desktop in order for the integration to work.

Okey.. then.. if I rename .desktop to that name it should work?!
With every update I should do that, right?

@ilya-fedin
Copy link
Contributor

No, there is not

That's the cause

@userofryzen
Copy link
Author

No, there is not

That's the cause

how can I integrate?

I see that there is oppengl logs but disabled on the beta program, why?

@ilya-fedin
Copy link
Contributor

if I rename .desktop to that name it should work?!

Yeah, but it's weird it chooses such a name, like /etc/kotatogram-desktop/externalupdater doesn't exist or doesn't contain path to the binary, but I see the package install it

@userofryzen
Copy link
Author

[2022.09.04 22:01:28] OpenGL: [FALSE] (OverlayWidget) this

@userofryzen
Copy link
Author

if I rename .desktop to that name it should work?!

Yeah, but it's weird it chooses such a name, like /etc/kotatogram-desktop/externalupdater doesn't exist or doesn't contain path to the binary, but I see the package install it

okey, how should you fix on aur then?
I'll say in comments

@ilya-fedin
Copy link
Contributor

okey, how should you fix on aur then?

I think there's a bug in tdesktop code...

@userofryzen
Copy link
Author

tdesktop

May be.. Idk how it works to be honest. But I think I have discovered a bug here.
[2022.09.04 22:05:04] OpenGL: Could not create widget in a window.

While on 1.4.8 there is such opengl support I think. Intel here

@ilya-fedin
Copy link
Contributor

how can I integrate?

It's usually done automatically, but may be broken if you use not bash as your login shell as those integration scripts reside in /etc/profile.d and not all shells read /etc/profile

@userofryzen
Copy link
Author

I have got lost with that message to be honest ilya.

@ilya-fedin
Copy link
Contributor

I can't help with opengl, sorry, we haven't touched opengl code in the fork

@userofryzen
Copy link
Author

okey, so bug upstream I think.
But.. with tray icon then the best way to make it works it's to rename the desktop file , right?

But when you refer the bug on updater.. what you mean?

@ilya-fedin
Copy link
Contributor

I see the logic that sets desktop file name doesn't work right due to wrong variable initialization order in upstream code

@userofryzen
Copy link
Author

Okey, perfect, I hope the mantainer can look at it.

Something weird that I have experienced now is that the https://aur.archlinux.org/packages/kotatogram-desktop-beta-dynamic-bin package initializes opengl .. I mean.. create the opengl context. It's something very weird , right? Because this package is the same as beta ones from you github...

@ilya-fedin
Copy link
Contributor

No, it's not weird, this may be a bug in Qt version used in the AppImage

@userofryzen
Copy link
Author

log.txt
From your github
log.txt
directly.
From aur package

amm Okay! I though that the appImage file for aur and github would be the same

@ilya-fedin
Copy link
Contributor

Okey, perfect, I hope the mantainer can look at it.

I don't think maintainer can do anything, it's a bug in the code, I've sent a PR upstream, but it will be a long time for the Kotatogram update

@ilya-fedin
Copy link
Contributor

appImage file for aur

kotatogram-desktop-beta-dynamic-bin doesn't use appimage I believe

@userofryzen
Copy link
Author

thanks for all, let's wee whats happen

Copy link
Contributor

github-actions bot commented Jul 1, 2024

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

@github-actions github-actions bot added the stale label Jul 1, 2024
@EricKotato EricKotato removed the stale label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants