Comments (13)
@palexdev there are some known compatibility issues with certain Linux desktop environments. Can you please send the specs of your current setup?
I could have sworn at one point that I had this library working on a test VM with GNOME as the desktop environment.
from fxtrayicon.
@palexdev there are some known compatibility issues with certain Linux desktop environments. Can you please send the specs of your current setup?
I could have sworn at one point that I had this library working on a test VM with GNOME as the desktop environment.
Of course, what do you need exactly?
from fxtrayicon.
Linux Distribution/version, and version of GNOME if you could, please.
from fxtrayicon.
OS: Garuda Linux x86_64
Kernel: 5.16
DE: GNOME 41.4
Full info from neofetch: Screenshot
from fxtrayicon.
@palexdev I will check further this weekend. Most folks don't even get to the black rectangle on GNOME, as I've seen in the past. I'm assuming that FXTrayIcon.isTrayIconSupported()
returns true
?
from fxtrayicon.
I didn't test it but I strongly believe it returns false by default.
In my case it returns true because I use one of these GNOME extensions: 1, 2
from fxtrayicon.
@dustinkredmond any news on this?
from fxtrayicon.
@palexdev I apologize for the delay, as I'm in the process of moving and still don't have internet at my new residence. Since you're using an extension to GNOME that causes the library to return true
, I'm not sure how best to handle this.
Unfortunately, I don't think we can support this due to the limitations imposed by AWT. I haven't found an acceptable workaround, so ideally FXTrayIcon's isSupported
should return false
. I hate to hardcode a return of false
in the event that someone is using the same platform/extensions that you are, but I also hate that it returns true
when it's ultimately not supported.
Let me get the other maintainers' opinions on how best to handle this. I definitely don't want the library hanging up an application because of an incorrect return value from isSupported
.
from fxtrayicon.
@palexdev Hi, I installed Garuda on a Virtual Machine (nice OS by the way) ... but am now curious after reading Dustins last comment... I remember that when it comes to GUIs in Linux, that the area of the GUI that is the "system tray" can be handled differently depending on different factors.
I found this link that seems to be some kind of plug-in for Gnome that tries to make System Tray interaction with Java a little easier. But what I found most interesting about that link is all the discussion concerning many of the issues that Dustin described when trying to implement a TrayIcon in a Linux environment along with some good explanations as to why those issues exist, and it even offers some suggestions to make things work ... you might find some of the info enlightening and perhaps even useful. It's a good read either way.
The entire TrayIcon functionality within Java - since the beginning - has been weak and has never gotten much attention from Java development in spite of healthy discussions happening at their level concerning that functionality. They seem to have handled Windows and MacOS well enough to where we can at least have some basic abilities, but when it comes to Linux, I think they just have never had the inclination to invest the amount of effort needed to get that piece of Java dialed in so that it works fluidly, predictably and mechanically identical across all platforms. This is unfortunate, but for now, is our reality.
from fxtrayicon.
I'm happy to leave this issue open if folks want to further explore possibilities for a fix. Ultimately, FXTrayIcon is (and always has been) nothing more than an abstraction over the AWT API. This really limits the possibilities we have for improvement, as we rely on the underlying implementation to be solid. If you all want to explore this further, please use this Issue to further discuss, otherwise, please close if you deem relevant. Thanks all for your contributions!
from fxtrayicon.
@dustinkredmond - Since I'm more of a "use if arm twisted" - style of Linux user, I have no interest in devoting large amounts of time to further its cause ... JavaFX doesn't seem to be particularly welcome much anywhere in the Linux space from what I gathered with the time I spent looking into the issues. I don't usually - as a rule - go where I'm not welcome. ☺
from fxtrayicon.
@palexdev I will check further this weekend. Most folks don't even get to the black rectangle on GNOME, as I've seen in the past. I'm assuming that FXTrayIcon.isTrayIconSupported() returns true?
As I've been testing GistFX on Linux (Ubuntu latest version) I've been noticing that FXT returns true on the supported test, but it ends up hanging the application so I just coded FXT out of the app if Linux is running, just to safe.
from fxtrayicon.
Closing issue, preferring to keep discourse on #12 which addresses attempts to get the library working on Linux in general.
from fxtrayicon.
Related Issues (20)
- NullPointerException when null MenuItem() HOT 3
- When another thread is running, some codding stops working! HOT 5
- After adding menu items, Actions listener on menu items not working HOT 2
- Clicking two time on Tray icon show empty stage? HOT 4
- After adding checkMenuItem, chech or uncheck not working HOT 1
- How to set Taskbar icon to JFXFileChooser? HOT 1
- Icon resolution limited to 16x16 on Windows HOT 1
- Only square icons possible? HOT 8
- addMenuItem after tray is shown throws exception HOT 8
- Feature Request: Make getTrayIcon() public HOT 8
- showMessage() title of the notification window HOT 6
- Icon Size Discussion HOT 1
- Blurry Icon with FXTrayIcon, Clearer Icon with AWT HOT 1
- Tray icon is non-transparent on some Linux desktop environments HOT 4
- JFXCentral Badge HOT 1
- TrayMenu can't show unicode characters HOT 1
- Maven central version HOT 3
- Menu size issue (high dpi) HOT 3
- Adding styling to the menu-item HOT 1
- Add graalvm-native image support! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fxtrayicon.