[PATCH v2 0/1] MR7652: ntdll: Treat XDG_DATA_DIRS as special env variable.
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. https://gitlab.winehq.org/wine/wine/-/merge_requests/7652
From: Louis Lenders <xerox.xerox2000x(a)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=" )); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7652
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7652#note_98899
I opened https://bugs.winehq.org/show_bug.cgi?id=58023 for the XDG_DATA_HOME issue. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7652#note_98901
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? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7652#note_99105
This merge request was closed by Louis Lenders. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7652
I wanted to continue on this MR, but somehow I made a new MR instead of continuing on this one. Anyway, I updated this in new MR 7901 so closing this one. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7652#note_101966
participants (3)
-
Louis Lenders -
Louis Lenders (@xe) -
Maotong Zhang (@xiaotong)