-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(x11/qt6-qtbase): Relocate hardcoded paths (#20785)
- Loading branch information
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
x11-packages/qt6-qtbase/src-corelib-io-qstandardpaths_unix.cpp.patch.beforehostbuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- a/src/corelib/io/qstandardpaths_unix.cpp | ||
+++ b/src/corelib/io/qstandardpaths_unix.cpp | ||
@@ -394,7 +394,7 @@ | ||
|
||
QStringList dirs = dirsList(xdgDataDirsEnv); | ||
if (dirs.isEmpty()) | ||
- dirs = QStringList{u"/usr/local/share"_s, u"/usr/share"_s}; | ||
+ dirs = QStringList{u"@TERMUX_PREFIX@/local/share"_s, u"@TERMUX_PREFIX@/share"_s}; | ||
|
||
return dirs; | ||
} | ||
@@ -406,7 +406,7 @@ | ||
|
||
QStringList dirs = dirsList(xdgConfigDirs); | ||
if (dirs.isEmpty()) | ||
- dirs.push_back(u"/etc/xdg"_s); | ||
+ dirs.push_back(u"@TERMUX_PREFIX@/etc/xdg"_s); | ||
|
||
return dirs; | ||
} |
11 changes: 11 additions & 0 deletions
11
x11-packages/qt6-qtbase/src-dbus-qdbusserver.cpp.patch.beforehostbuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/src/dbus/qdbusserver.cpp | ||
+++ b/src/dbus/qdbusserver.cpp | ||
@@ -51,7 +51,7 @@ | ||
: QDBusServer( | ||
#ifdef Q_OS_UNIX | ||
// Use Unix sockets on Unix systems only | ||
- QStringLiteral("unix:tmpdir=/tmp"), | ||
+ QStringLiteral("unix:tmpdir=@TERMUX_PREFIX@/tmp"), | ||
#else | ||
QStringLiteral("tcp:"), | ||
#endif |
11 changes: 11 additions & 0 deletions
11
x11-packages/qt6-qtbase/src-gui-platform-unix-qgenericunixthemes.cpp.patch.beforehostbuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/src/gui/platform/unix/qgenericunixthemes.cpp | ||
+++ b/src/gui/platform/unix/qgenericunixthemes.cpp | ||
@@ -454,7 +454,7 @@ | ||
QStringList QGenericUnixTheme::iconFallbackPaths() | ||
{ | ||
QStringList paths; | ||
- const QFileInfo pixmapsIconsDir(QStringLiteral("/usr/share/pixmaps")); | ||
+ const QFileInfo pixmapsIconsDir(QStringLiteral("@TERMUX_PREFIX@/share/pixmaps")); | ||
if (pixmapsIconsDir.isDir()) | ||
paths.append(pixmapsIconsDir.absoluteFilePath()); | ||
|