mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-11 13:09:18 +00:00
16 lines
867 B
Diff
16 lines
867 B
Diff
--- a/plugin-kbindicator/src/x11/kbdlayout.cpp
|
|
+++ b/plugin-kbindicator/src/x11/kbdlayout.cpp
|
|
@@ -245,10 +245,10 @@
|
|
static LangInfo def{QStringLiteral("Unknown"), QStringLiteral("??"), QStringLiteral("None")};
|
|
static QHash<QString, LangInfo> names;
|
|
if (names.empty()){
|
|
- if(QFile::exists(QStringLiteral("/usr/share/X11/xkb/rules/evdev.xml"))){
|
|
+ if(QFile::exists(QStringLiteral("@TERMUX_PREFIX@/share/X11/xkb/rules/evdev.xml"))){
|
|
QDomDocument doc;
|
|
|
|
- QFile file(QStringLiteral("/usr/share/X11/xkb/rules/evdev.xml"));
|
|
+ QFile file(QStringLiteral("@TERMUX_PREFIX@/share/X11/xkb/rules/evdev.xml"));
|
|
if (file.open(QIODevice::ReadOnly)){
|
|
if (doc.setContent(&file)) {
|
|
QDomElement docElem = doc.documentElement();
|