mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: JavaFX/SWT applications don't get managed #578
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Insprill on GitHub (Feb 26, 2025).
Summary
When opening any* JavaFX or SWT application, komorebi won't recognize its existence.
I've been able to reproduce this 100% reliably with TuxGuitar (SWT) and MCA Selector (JavaFX). Simply opening either of them will demonstrate the problem.
Adding either of these applications to the
manage_rulesarray in the komorebi config does not solve the issue; however, manually runningkomorebic managedoes.Version Information
Komorebi Configuration
bc5e16ca03/dot_config/komorebi/komorebi.jsonHotkey Configuration
bc5e16ca03/dot_config/autohotkey/komorebi.ahkOutput of komorebic check
@LGUG2Z commented on GitHub (Feb 27, 2025):
Java GUI apps in general don't send a
Shownotification on launch, you'll need to identify them asobject_name_change_applications- this worked for me for both apps in mykomorebi.json:Feel free to upstream these and any other Java apps to the asc repo
@Insprill commented on GitHub (Feb 27, 2025):
The classes of MCA Selector and TuxGuitar are
GlassWndClass-GlassWindowClass-2andSWT_Window0, respectively. I'm not sure what exactly influences them, but would it be worth adding a "catch-all" rule for any windows with classes starting withSWT_WindoworGlassWndClass, or running fromjavaw.exe? Since it seems to be all Java applications that are broken like that, I feel having those rules would be more beneficial than hunting down every possible misbehaving application.@LGUG2Z commented on GitHub (Feb 28, 2025):
If there are any other Java GUI framework apps you could check out the classes for to sanity check the uniformity of these class prefixes, I think that would be enough due diligence to add the catch-alls to the asc repo
@Insprill commented on GitHub (Feb 28, 2025):
I poked through GitHub topics to find some random Java GUI applications and looked at their classes, here's what I got:
GlassWndClass-GlassWindowClass-N- MCA Selector, dv-custom-car-manager, xpipe, JabRef, PDFsam, PrettyZooI'm not sure what influences N, I've only seen 2 and 3.
SWT_WindowN- TuxGuitar (Couldn't find any others)SunAwtFrame- Minecraft 1.0, Apache NetBeansThese applications are managed correctly, so no rules are needed.
@vanillagreencom commented on GitHub (Nov 17, 2025):
I cant seem to get Trader Workstation from Interactive Brokers to manage either. It has SunAwtFrame class as well
tried below also:
"object_name_change_applications": [
{
"kind": "Exe",
"id": "tws.exe",
"matching_strategy": "Equals"
},
]