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 · 3 comments
Open

SystemTray initialization takes a long time #221

Martmists-GH opened this issue Sep 1, 2024 · 3 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.....

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