-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
32 additions
and
13 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
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
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/core/helpers.cpp | ||
+++ b/core/helpers.cpp | ||
@@ -338,7 +338,7 @@ | ||
DirectorySearch(std::filesystem::path{*homepath}/".local/share"/path, ext, &results); | ||
|
||
/* Search global data dirs */ | ||
- std::string datadirs{al::getenv("XDG_DATA_DIRS").value_or("/usr/local/share/:/usr/share/")}; | ||
+ std::string datadirs{al::getenv("XDG_DATA_DIRS").value_or("@TERMUX_PREFIX@/share/")}; | ||
|
||
size_t curpos{0u}; | ||
while(curpos < datadirs.size()) |
11 changes: 11 additions & 0 deletions
11
packages/openal-soft/utils-alsoft-config-mainwindow.cpp.patch
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/utils/alsoft-config/mainwindow.cpp | ||
+++ b/utils/alsoft-config/mainwindow.cpp | ||
@@ -216,7 +216,7 @@ | ||
#else | ||
QString paths = qgetenv("XDG_DATA_DIRS"); | ||
if(paths.isEmpty()) | ||
- paths = "/usr/local/share/:/usr/share/"; | ||
+ paths = "@TERMUX_PREFIX@/share/"; | ||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) | ||
list += paths.split(QChar(':'), Qt::SkipEmptyParts); | ||
#else |