remove extra /usr from the XDG paths fix

This commit is contained in:
Symeon Huang 2021-05-21 10:46:52 +01:00 committed by Yaksh Bariya
parent 8038da6b63
commit da275ce717
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Qt 5 implementation of freedesktop.org XDG specification
TERMUX_PKG_LICENSE="LGPL-2.1"
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
TERMUX_PKG_VERSION=3.7.1
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL="https://github.com/lxqt/libqtxdg/releases/download/${TERMUX_PKG_VERSION}/libqtxdg-${TERMUX_PKG_VERSION}.tar.xz"
TERMUX_PKG_SHA256=477cbe76b3305071ff5f5bfa31dbcddcc51f3434b9ed75d91988219296d88a9b
TERMUX_PKG_DEPENDS="qt5-qtbase, qt5-qtsvg, glib"

View File

@ -24,8 +24,8 @@
if (dirs.isEmpty()) {
- dirs.append(QString::fromLatin1("/usr/local/share"));
- dirs.append(QString::fromLatin1("/usr/share"));
+ dirs.append(QString::fromLatin1(TERMUX_PREFIX) + QString::fromLatin1("/usr/local/share"));
+ dirs.append(QString::fromLatin1(TERMUX_PREFIX) + QString::fromLatin1("/usr/share"));
+ dirs.append(QString::fromLatin1(TERMUX_PREFIX) + QString::fromLatin1("/local/share"));
+ dirs.append(QString::fromLatin1(TERMUX_PREFIX) + QString::fromLatin1("/share"));
} else {
QMutableListIterator<QString> it(dirs);
while (it.hasNext()) {