FabricMC / Enigma

This is a fork of cuchaz's Enigma, a deobfuscation/remapping tool for Java software.
GNU Lesser General Public License v3.0
457 stars 115 forks source link

[Bug] Different File explorers #281

Open BoogieMonster1O1 opened 4 years ago

BoogieMonster1O1 commented 4 years ago

Opening a jar file and exporting mappings have a different file explorer and Exporting source and Opening mappings have a different file explorer.

Opening a jar file and exporting mappings
Screenshot

Exporting source and Opening mappings
Screenshot

One of them is the native file explorer that all other applications use, and the other is a similar looking one that uses the old aqua look and feel. It would be best if only the native one is used, as some features aren't there in the other one.

Java version: 8u252 Allotted memory: 64 MB

2xsaiko commented 4 years ago

This is also an issue on Linux, where the top one is replaced by a GTK 3 one (eww) and the bottom one is a Java one. I'm not sure if it's possible to make everything use native file dialogs. I could try doing something for KDE on Linux with kdialog if that's installed but I can't test anything for Mac.

SkytAsul commented 4 years ago

Happens on Windows as well, as everyone said it would be better to have the native explorer everywhere!

modmuss50 commented 4 years ago

I think I looked into this a long while back and found it hard to find a good solution. IIRC using LWJGL was the only real soltuion

modmuss50 commented 4 years ago

I tried this in a failed PR a long time ago: https://github.com/FabricMC/Enigma/pull/61

NebelNidas commented 2 years ago

Fixed via #401 (although now that Enigma requires Java 17, maybe we can move back to AWT's FileDialog?)