forked from termux/termux-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsrc-qtxdg-xdgdirs.cpp.patch
More file actions
31 lines (28 loc) · 1 KB
/
src-qtxdg-xdgdirs.cpp.patch
File metadata and controls
31 lines (28 loc) · 1 KB
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
--- a/src/qtxdg/xdgdirs.cpp
+++ b/src/qtxdg/xdgdirs.cpp
@@ -125,7 +125,7 @@
const QString home = QFile::decodeName(qgetenv("HOME"));
if (home.isEmpty())
- return "/tmp"_L1;
+ return "@TERMUX_PREFIX@/tmp"_L1;
else if (dir == XdgDirs::Desktop)
fallback = "%1/%2"_L1.arg(home, "Desktop"_L1);
else
@@ -284,8 +284,8 @@
QStringList dirs = d.split(u':', Qt::SkipEmptyParts);
if (dirs.isEmpty()) {
- dirs.append("/usr/local/share"_L1);
- dirs.append("/usr/share"_L1);
+ dirs.append("@TERMUX_PREFIX@/local/share"_L1);
+ dirs.append("@TERMUX_PREFIX@/share"_L1);
} else {
QMutableListIterator<QString> it(dirs);
while (it.hasNext()) {
@@ -307,7 +307,7 @@
QStringList dirs;
const QString env = QFile::decodeName(qgetenv("XDG_CONFIG_DIRS"));
if (env.isEmpty())
- dirs.append("/etc/xdg"_L1);
+ dirs.append("@TERMUX_PREFIX@/etc/xdg"_L1);
else
dirs = env.split(u':', Qt::SkipEmptyParts);