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

So .... how to support Wayland? #174

Closed
arija-ari opened this issue Oct 18, 2024 · 6 comments
Closed

So .... how to support Wayland? #174

arija-ari opened this issue Oct 18, 2024 · 6 comments

Comments

@arija-ari
Copy link

arija-ari commented Oct 18, 2024

Hey. I was super delighted to find this minimal lib to display a tray icon, it works well enough for my use-case and I don't have to depend on a huge library to do just one thing.

I wasn't able to predict that I would end up wanting Wayland support. I'm not sure if my Python script uses xwayland or not, but without pystray it runs fine under Wayland, I kinda wish pystray would work on Wayland, too.

This issue probably goes beyond the scope of this project, so I want to ask nicely, what are my lightweight possible alternatives? I'm ready to introduce redundant logic to cover Wayland, it's just that I cannot find a good lib that is lightweight.

Or can we actually push pystray towards Wayland support? I have no idea.

@abitrolly
Copy link

@arija-ari maybe it is Window Manager that doesn't want to show the icon? #136

Anyways, what error do you get?

@arija-ari
Copy link
Author

@abitrolly The python script crashes, but I forgot the error, I used to X11 for that use-case. The reason why I posted no error here is, because the author is well aware about pystray not running on wayland, because it is not listed under the support platforms. So the lack of support for wayland is the problem, thank you.

@abitrolly
Copy link

Are you sure it is Wayland problem, and not GNOME problem?

@arija-ari
Copy link
Author

arija-ari commented Dec 19, 2024

@abitrolly The author explicitly mentions only mentions Xorg, thus Wayland support is not (officially) supported (although not sure if GNOME/Ubuntu are exceptions here):

Supported platforms are *Linux* under *Xorg*, *GNOME* and *Ubuntu*, *macOS*

I was testing on Debian KDE under Wayland. Maybe I'm asking for KDE Wayland Support then. 🥲

@moses-palmer
Copy link
Owner

@arija-ari, I personally use Wayland, and this library does work for me. That is because I use a desktop environment supported by AppIndicator.

Wayland itself does not expose any system tray functionality, so there is not really anything I can do to add support in this library; perhaps if you install the Python bindings for AppIndicator for your system?

I will close this issue now, since I do not think there is any way to add support for any Wayland system.

@abitrolly
Copy link

@moses-palmer maybe improving error message could help users to understand the situation a bit. I dk, really. GNOME has some Panel Button API, but it is non public as far as I googled.

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