summarylogtreecommitdiffstats
path: root/wine-isolate_home.patch
diff options
context:
space:
mode:
authorStelios Tsampas2021-09-26 18:47:43 +0300
committerStelios Tsampas2021-09-26 18:47:43 +0300
commita7aae53a9ff4cbaf8dd373a355c9e321c4ebc22b (patch)
tree9599253dc7029db539a671a4866ce37715b456b5 /wine-isolate_home.patch
parent4b4ea1df13284fffbee3584ac7e06cac53706a83 (diff)
downloadaur-a7aae53a9ff4cbaf8dd373a355c9e321c4ebc22b.tar.gz
Version 6.18-GE-1
Diffstat (limited to 'wine-isolate_home.patch')
-rw-r--r--wine-isolate_home.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/wine-isolate_home.patch b/wine-isolate_home.patch
new file mode 100644
index 000000000000..6fd2e5ccf06c
--- /dev/null
+++ b/wine-isolate_home.patch
@@ -0,0 +1,17 @@
+diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c
+index 7bfa504a62f..4896bbad88f 100644
+--- a/dlls/shell32/shellpath.c
++++ b/dlls/shell32/shellpath.c
+@@ -3007,7 +3007,12 @@ HRESULT WINAPI SHGetFolderPathAndSubDirW(
+
+ /* create symbolic links rather than directories for specific
+ * user shell folders */
++ const WCHAR *sandbox = _wgetenv( L"WINEUSERSANDBOX" );
++ int isolate = 0;
++ isolate = sandbox && !strcmp(sandbox, "1");
++ if(!isolate) {
+ _SHCreateSymbolicLink(folder, szBuildPath);
++ }
+
+ /* create directory/directories */
+ ret = SHCreateDirectoryExW(hwndOwner, szBuildPath, NULL);