Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49987
GTK apps seem to use this to find path to schemas, like Meld: https://download.gnome.org/binaries/win32/meld/3.22/Meld-3.22.2-mingw.msi which doesn't start at all without this patch. More info in https://bugs.winehq.org/show_bug.cgi?id=49987.
-- v2: ntdll: Treat XDG_DATA_DIRS as special env variable.
From: Louis Lenders xerox.xerox2000x@gmail.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49987
GTK apps seem to use this to find path to schemas, like Meld: https://download.gnome.org/binaries/win32/meld/3.22/Meld-3.22.0-mingw.msi which doesn't start at all without this patch. More info in https://bugs.winehq.org/show_bug.cgi?id=49987. --- dlls/ntdll/unix/env.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index 7193cceb87e..24a10ed4c42 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -346,6 +346,7 @@ static BOOL is_special_env_var( const char *var ) STARTS_WITH( var, "TMP=" ) || STARTS_WITH( var, "QT_" ) || STARTS_WITH( var, "VK_" ) || + STARTS_WITH( var, "XDG_DATA_DIRS=" ) || STARTS_WITH( var, "XDG_SESSION_TYPE=" )); }
I changed the description with the version of Meld I had installed here, which was 3.22.0.
It seems Meld-3.22.2 also needs unsetting XDG_DATA_HOME; I'll open a new bugreport for that.
I opened https://bugs.winehq.org/show_bug.cgi?id=58023 for the XDG_DATA_HOME issue.
XDG_DATA_DIRS
linux : /usr/local/share:/usr/share:/usr/share/plasma:/var/lib/snapd/desktop: ...
windwos : %PROGRAMDATA%
Under normal circumstances, the XDG_DATA_DIRS variable exists in Linux, and Wine should not read the XDG_DATA_DIRS variable when running applications. The Windows variable '%PROGRAMDATA%' should be read.
Filter out the XDG_DATA_DIRS variable.The libraries in the 'appname.exe' directory that will be loaded later. The program executed successfully.
Can add a 'appname.exe' directory to search for and load libraries to achieve this?