UnityStandaloneFileBrowser icon indicating copy to clipboard operation
UnityStandaloneFileBrowser copied to clipboard

Fix Linux support

Open Menci opened this issue 3 years ago • 3 comments

This PR fixes #43.

Technical details: The original code loads GTK+ inside the Unity process. It causes the gtk_init function to hang in a deadlock (See the backtrace here). I separated the GTK+ related code to a new executable (I'm not sure about Unity's directory structure so I bundled the executable in the library) and run it in a separated process (pass input with argv and get output from pipe()-d stdout) when opening a dialog.

Menci avatar Jun 18 '21 19:06 Menci

+1 can this get merged in?

thinkallabout avatar Jul 24 '21 21:07 thinkallabout

+1!! really useful PR

HeySora avatar Jul 06 '22 09:07 HeySora

I have implemented this in my fork as it fixes the bugs, thank you!

JohnGames avatar Oct 29 '22 18:10 JohnGames