Respect XDG_CONFIG_HOME when getting ibus socket location
Task-number: QTBUG-58687 Change-Id: I97ea8b7d7caf922227a92348fb914aead1ecd312 Reviewed-by: Tinu Weber Reviewed-by: Takao Fujiwara <takao.fujiwara1@gmail.com> Reviewed-by: Konstantin Tokarev <annulen@yandex.ru> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>bb10
parent
dd7f62059c
commit
1d6700171c
|
|
@ -572,7 +572,8 @@ QString QIBusPlatformInputContextPrivate::getSocketPath()
|
|||
if (debug)
|
||||
qDebug() << "host=" << host << "displayNumber" << displayNumber;
|
||||
|
||||
return QDir::homePath() + QLatin1String("/.config/ibus/bus/") +
|
||||
return QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) +
|
||||
QLatin1String("/ibus/bus/") +
|
||||
QLatin1String(QDBusConnection::localMachineId()) +
|
||||
QLatin1Char('-') + QString::fromLocal8Bit(host) + QLatin1Char('-') + QString::fromLocal8Bit(displayNumber);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue