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

SystemTray initialization takes a long time #221

Open
Martmists-GH opened this issue Sep 1, 2024 · 6 comments
Open

SystemTray initialization takes a long time #221

Martmists-GH opened this issue Sep 1, 2024 · 6 comments

Comments

@Martmists-GH
Copy link

Usually takes between 2-3 minutes before it shows up.

@ctoabidmaqbool
Copy link

I think you have to give more complete info. e.g. System Os using, which JDK version is used also which version of library you are trying and so on!

@Martmists-GH
Copy link
Author

Arch Linux x64, KDE Plasma 6, OpenJDK 21, SystemTray 4.4

@jdmcmillian
Copy link

jdmcmillian commented Sep 12, 2024

I agree, it is pretty slow to startup. Im not sure ebaout 2-3

Debian 12/Gnome
Linux desktop 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux

2024-09-12T17:48:12.000732 EDT UTC [TRACE ] [DEBUG] [JavaFX Application Thread] [ 2] com............... - start:28 -> displayTrayIcon:43::
2024-09-12T17:49:13.000180 EDT UTC [TRACE ] [DEBUG] [JavaFX Application Thread] [ 2] com............... - start:28 <-- displayTrayIcon:58 :: null

public void displayTrayIcon() {
SystemTray systemTray = SystemTray.get();
systemTray.setImage(ICON_WHITE.getImageAwt());
systemTray.setMenu(new JMenu());
systemTray.getMenu().add(new MenuItem("Lock", this::lockManifestAndPopup));
systemTray.getMenu().add(new Separator());
systemTray.getMenu().add(new MenuItem("Exit", this::exitApplication));
}

It's almost like there's a built-in 60-second delay.....

@CallMeFlanby
Copy link

CallMeFlanby commented Oct 10, 2024

It is the same issue as in #190. There was no release after the solution was merged and that's why we still have to deal with this issue. :) @dorkbox can you maybe add this or the other issue to your Milestone 4.5? TIA

@jdmcmillian
Copy link

Or tell us who we have to bribe with coffee and a bag of Cheetos?

@Martmists-GH
Copy link
Author

For the time being I've uploaded a build of 4.5 to my own maven repo in case anyone needs it: https://maven.martmists.com/#/snapshots/com/dorkbox/SystemTray/4.5

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

4 participants