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

System tray not visible on some Linux distributions #350

Closed
ManfredKarrer opened this issue Dec 28, 2015 · 11 comments
Closed

System tray not visible on some Linux distributions #350

ManfredKarrer opened this issue Dec 28, 2015 · 11 comments

Comments

@ManfredKarrer
Copy link
Member

"First start was ok (testnet synced, Tor connection established) but 2rd and follow attempts failed with error messages stating that running few Bitsquare at the same time is impossible. I guess when I click on Close button of running Bitsquare, it doesn't close, but minimize to systray instead. But the problem is that seems like Java using xembed systray icons, and Plasma 5.4 (DE of Kubuntu 15.10) is phasing out dependency on X11 technologies/protocols, including xembed (because DE developers implementing support for new protocol Wayland for communication between applications and display server, they keep only functional that works with this new protocol, and xembed happen to work only with old one - X11; also there is number of issues with xembed). So xembed systray icons doesn't work for me and when I click close on Bitsquare window I thought it's really closed while in fact it continue running (still not sure if it's really the case because I doesn't know how to check this).
If I was right, then issue in Java, that using xembed directly, instead of relying on toolkit (in case of Java on Linux it's GTK3, for example save dialog in Bitsquare is GTK3-style) for interaction with DE systray. There is more details.
Also libappindicator support could be implemented in Java directly, but not sure if this necessary, if they could use implemented GTK3 libappindicator support.
Also as far I know other DE is also phase out xembed support, for example Gnome Shell."

-> We deactivate that "keep running in background" behaviour for the moment until those issues are solved. Need a information alert also to tell the user about that behviour.

@bitspill
Copy link

Steam has had the same issue since at least January 2013 and their approach was to substitute the close action with minimize and utilize an environment variable to enable closing to the sys tray for users who know it will work on their system.

ValveSoftware/steam-for-linux#1025

@ManfredKarrer
Copy link
Member Author

Thanks for the hint!

@qtlin
Copy link

qtlin commented Mar 11, 2018

@ManfredKarrer System tray still not supported? Should I open a new issue?

[AWT-EventQueue-0] ERROR i.b.g.a.BisqApp: throwableMessage= The system tray is not supported on the current platform. 
java.lang.UnsupportedOperationException: The system tray is not supported on the current platform.

Ubuntu 16.04

@stale
Copy link

stale bot commented Jan 17, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@ripcurlx ripcurlx changed the title System tray not visible on soe Linux distributions System tray not visible on some Linux distributions Feb 12, 2019
@erciccione
Copy link
Contributor

erciccione commented Aug 14, 2019

This problem is still current. The system tray is not visible since years for me, would be nice to have this fixed because it's bad UX. Additionally, the tray icon appear as an opened page on Debian, forcing me to right click the main icon, choose the actual bisq interface, and finally click to visualize it. I also get a "the system tray is not supported on this system" warning every time my laptop turns of the screen to save energy. It's very annoying.

bisq

The problem shows in both Debian Sid and Buster (Gnome) and was present in Stretch.

cd2357 added a commit to cd2357/bisq that referenced this issue May 7, 2020
Update the gradle dependency to JavaFX 14.

This brings to Bisq the latest JavaFX fixes and improvements, especially
 in the areas of UI performance, memory management and security.

JavaFX can be upgraded independently of the JDK used to build the
application, so this change is modular and does not affect other parts
of the build process.

Related / likely related to: bisq-network#350 bisq-network#2135 bisq-network#2509 bisq-network#3128 bisq-network#3307 bisq-network#3308 bisq-network#3343
bisq-network#3430 bisq-network#3657 bisq-network#3677 bisq-network#3683 bisq-network#3686 bisq-network#3786 bisq-network#3787 bisq-network#3892 bisq-network#3917 bisq-network#3918 bisq-network#3936
cd2357 added a commit to cd2357/bisq that referenced this issue Sep 16, 2020
Update the gradle dependency to JavaFX 14.

This brings to Bisq the latest JavaFX fixes and improvements, especially
 in the areas of UI performance, memory management and security.

JavaFX can be upgraded independently of the JDK used to build the
application, so this change is modular and does not affect other parts
of the build process.

Related / likely related to: bisq-network#350 bisq-network#2135 bisq-network#2509 bisq-network#3128 bisq-network#3307 bisq-network#3308 bisq-network#3343
bisq-network#3430 bisq-network#3657 bisq-network#3677 bisq-network#3683 bisq-network#3686 bisq-network#3786 bisq-network#3787 bisq-network#3892 bisq-network#3917 bisq-network#3918 bisq-network#3936
@premek
Copy link

premek commented Dec 3, 2020

the error popup removed in #4874

@ripcurlx
Copy link
Contributor

ripcurlx commented Dec 4, 2020

Closing as complete.

@ripcurlx ripcurlx closed this as completed Dec 4, 2020
@premek
Copy link

premek commented Dec 9, 2020

my comment refererd only to removing the error message "The system tray is not supported on the current platform"

@ripcurlx ripcurlx reopened this Dec 9, 2020
@premek
Copy link

premek commented Dec 9, 2020

It seems to me that the icon is misplaced on Xorg but it's at the right place on Wayland

Wayland (correct):
Screenshot from 2020-12-09 20-14-15

Xorg (icon in top left corner but clickable at the correct position in the top bar at the right side)
Screenshot from 2020-12-09 22-44-29

@ripcurlx
Copy link
Contributor

This might improve when switching to the latest Java runtime and packager in #4242.

@cd2357
Copy link
Contributor

cd2357 commented May 9, 2021

Should be fixed in the most recent release (v1.6.4).

@cd2357 cd2357 closed this as completed May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants