https://bugs.winehq.org/show_bug.cgi?id=49987
Bug ID: 49987 Summary: Application freeze when trying to open file chooser dialog Product: Wine Version: 5.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: mikrutrafal@protonmail.com Distribution: ---
Created attachment 68389 --> https://bugs.winehq.org/attachment.cgi?id=68389 Full log
When I download my GTK app - https://github.com/qarmin/czkawka/releases/download/1.1.0/windows_czkawka_gu... and run it, then when clicking at "+Add" directly below "Included Directories", then app freeze
Suspicious errors from console ``` 01d8:fixme:imm:ImmGetOpenStatus (000000000383F3B0): semi-stub 01d8:fixme:imm:ImmReleaseContext (0000000000030082, 000000000383F3B0): stub 01d8:fixme:file:GetLongPathNameW UNC pathname L"\\?\C:\users\rafal\Local Settings\Application Data\recently-used.xbel" 01d8:fixme:file:GetLongPathNameW UNC pathname L"\\?\C:\users\rafal\Local Settings\Application Data\gtk-3.0\bookmarks" 01d8:err:shell:SHGetFileInfoW pidl is null! 01d8:err:shell:SHGetFileInfoW pidl is null! (czkawka_gui.exe:468): Gtk-WARNING **: 14:44:44.483: Error loading theme icon 'list-add' for stock: Icon 'list-add' not present in theme Adwaita 01d8:fixme:file:GetLongPathNameW UNC pathname L"\\?\C:\users\rafal\Local Settings\Application Data\gtk-3.0\bookmarks" 01d8:fixme:file:GetLongPathNameW UNC pathname L"\\?\C:\users\rafal\Local Settings\Application Data\gtk-3.0\servers" ```
On Windows none of this errors is shown
https://bugs.winehq.org/show_bug.cgi?id=49987
RafaĆ Mikrut mikrutrafal@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/qarmin/c | |zkawka/releases/download/1. | |1.0/windows_czkawka_gui.zip
https://bugs.winehq.org/show_bug.cgi?id=49987
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Application freeze when |GTK Application freeze when |trying to open file chooser |trying to open file chooser |dialog |dialog CC| |xerox.xerox2000x@gmail.com Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- Confirming.
This seems to affect multiple (all?) GTK apps like Meld (doesn't start) and Geany (just exits after one chooses "File Open")
Problem seems to be that the apps cannot find the schemas dir. One can work around it by setting GSETTINGS_SCHEMA_DIR env. variable.
Like when you extract the app in /tmp it works like so:
GSETTINGS_SCHEMA_DIR="z:\tmp\windows_czkawka_gui\share\glib-2.0\schemas" wine czkawka_gui.exe
I don't know if this variable is set on windows by the app, or if this path is somewhere set in the registry by the app? Rafal, any ideas?
https://bugs.winehq.org/show_bug.cgi?id=49987
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Did some more testing, maybe the troubles is caused by the XDG_DATA_DIRS environment variable.
This is on my Antix distro set to /usr/local/share/:/usr/share/
But I think the apps get confused by it as they seem to use it as well. I can start the applications like
XDG_DATA_DIRS="" wine czkawka_gui.exe and then they run . I think wine might need to unset this variable?
https://bugs.winehq.org/show_bug.cgi?id=49987
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|GTK Application freeze when |Multiple GTK Applications |trying to open file chooser |freeze/fail to start |dialog |
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- Unsetting XDG_DATA_DIRS also allows Meld to start properly, and "fixes" the crash in Geany after "File Open" is clicked.
So this seems to be the culprit here. Somehow wine needs to unset this variable.
https://bugs.winehq.org/show_bug.cgi?id=49987
--- Comment #4 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 78281 --> https://bugs.winehq.org/attachment.cgi?id=78281 patch
Attached fix, will send later upstream for review.