forked from Kron4ek/Wine-Builds
-
Notifications
You must be signed in to change notification settings - Fork 17
/
pathfix-wine9.5.patch
51 lines (49 loc) · 2.32 KB
/
pathfix-wine9.5.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff --git a/dlls/crypt32/unixlib.c b/dlls/crypt32/unixlib.c
index 72770ca..3bf1d5c 100644
--- a/dlls/crypt32/unixlib.c
+++ b/dlls/crypt32/unixlib.c
@@ -619,6 +619,7 @@ static const char * const CRYPT_knownLocations[] = {
"/usr/local/share/certs/",
"/etc/sfw/openssl/certs",
"/etc/security/cacerts", /* Android */
+ "/data/data/com.termux/files/usr/glibc/etc/ca-certificates/cacert.pem"
};
static void load_root_certs(void)
diff --git a/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c
index 438c165..c35352b 100644
--- a/dlls/ntdll/unix/server.c
+++ b/dlls/ntdll/unix/server.c
@@ -1236,7 +1236,7 @@ static const char *init_server_dir( dev_t dev, ino_t ino )
#ifdef __ANDROID__ /* there's no /tmp dir on Android */
asprintf( &dir, "%s/.wineserver/server-%llx-%llx", config_dir, (unsigned long long)dev, (unsigned long long)ino );
#else
- asprintf( &dir, "/tmp/.wine-%u/server-%llx-%llx", getuid(), (unsigned long long)dev, (unsigned long long)ino );
+ asprintf( &dir, "/data/data/com.termux/files/usr/tmp/.wine-%u/server-%llx-%llx", getuid(), (unsigned long long)dev, (unsigned long long)ino );
#endif
return dir;
}
diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c
index 36569fa..6a1cc6f 100644
--- a/programs/winemenubuilder/winemenubuilder.c
+++ b/programs/winemenubuilder/winemenubuilder.c
@@ -1724,7 +1724,7 @@ static BOOL build_native_mime_types(struct list *mime_types)
if (_wgetenv( L"XDG_DATA_DIRS" ))
dirs = xwcsdup( _wgetenv( L"XDG_DATA_DIRS" ));
else
- dirs = xwcsdup( L"/usr/local/share/:/usr/share/" );
+ dirs = xwcsdup( L"/data/data/com.termux/files/usr/glibc/local/share:/data/data/com.termux/files/usr/glibc/share" );
ret = add_mimes(xdg_data_dir, mime_types);
if (ret)
diff --git a/server/request.c b/server/request.c
index 2691e0c..df1aeea 100644
--- a/server/request.c
+++ b/server/request.c
@@ -648,7 +648,7 @@ static char *create_server_dir( int force )
if (asprintf( &base_dir, "%s/.wineserver", config_dir ) == -1)
fatal_error( "out of memory\n" );
#else
- if (asprintf( &base_dir, "/tmp/.wine-%u", getuid() ) == -1)
+ if (asprintf( &base_dir, "/data/data/com.termux/files/usr/tmp/.wine-%u", getuid() ) == -1)
fatal_error( "out of memory\n" );
#endif
create_dir( base_dir, &st2 );