arch-noob / filebot

FileBot ArchLinux AUR
https://aur.archlinux.org/packages/filebot/
2 stars 9 forks source link

Set _JAVA_AWT_WM_NONREPARENTING=1 to avoid blank / grey filebot window #30

Closed zDEFz closed 2 months ago

zDEFz commented 2 months ago

Reported I need to set env variable _JAVA_AWT_WM_NONREPARENTING=1 to make filebot show up in Wayland - in my case Sway. I know that I won't set it globally as it would have ill effects. So this tweak I applied in my alias and the desktop file.

Author rednoah says: If _JAVA_AWT_WM_NONREPARENTING fixes the issue then so be it. Please report the issue to the AUR package maintainers.

Before: image

After: image

rvasilev commented 2 months ago

@zDEFz @rednoah

It's related to [https://wiki.archlinux.org/title/Java#Gray_window,_applications_not_resizing_with_WM,_menus_immediately_closing]() with more than one solution.

Should there be any check to distinguish if wayland/x11 is running before setting the variable?

rednoah commented 2 months ago

AFAIK, this workaround is specifically for wayland in combination with certain window managers. I strongly support a check for "is wayland" or "not is x11" so that we don't inadvertently introduce issues with currently happy x11 users.

zDEFz commented 2 months ago

Maybe just grabbing $XDG_SESSION_TYPE ?

zDEFz commented 2 months ago

I pushed a test best-effort PR. Working for me on sway.