Closed all-yall closed 6 years ago
the code might just need a try catch around the setlookandfeel call so it has the default ui if loading this one fails
after looking at the source i see that there is a try catch:
21
22 public FrameManager() {
23 try {
24 // darcula theme by default
25 UIManager.setLookAndFeel(new DarculaLaf());
26 } catch (Exception ignored) {}
27 }
28
the problem might be that i got the code from the website (https://lightbeat.io/) instead of building it from source and the jar on the website is out of date.
that or i'm missing something obvious, in which case it would not be the first time.
Thanks for bringing this to my attention, I can reproduce the issue on Ubuntu aswell. Unfortunately this is an upstream bug in the Darcula LAF we are using..
I have added the workaround suggested in said ticket. The Exception that is being caught here is actually a subclass of Error
and thus wont be caught. I have actually modified said code to log if an Exception is thrown here.
I plan to release version 1.4.0 asap that will include the workaround. Commit https://github.com/Kakifrucht/LightBeat/commit/24d17b29578df8ea4e237e91eb865fd6aac0351e
After updating the jar file with the fixed FrameManager class it worked perfectly, thanks!
Fixed in 1.4.0!
i ran the jar file with and without sudo and received this output both times: