Use QStandardPaths for finding plasma shells instead of hardcoding to install prefix
Otherwise plasma shells are never found if plasma-framework and kde-workspace are installed to different prefixes REVIEW: 115871 BUG: 331063
This commit is contained in:
parent
e83e3cf300
commit
dde1da619e
@ -35,8 +35,9 @@
|
||||
|
||||
#include <kcrash.h>
|
||||
|
||||
static const QString s_shellsDir(
|
||||
QString(CMAKE_INSTALL_PREFIX) + "/" + DATA_INSTALL_DIR + "/" + "plasma/shells/");
|
||||
static const QString s_shellsDir = QString(QStandardPaths::locate(QStandardPaths::QStandardPaths::GenericDataLocation,
|
||||
"plasma/shells/",
|
||||
QStandardPaths::LocateDirectory));
|
||||
static const QString s_shellLoaderPath = QString("/contents/loader.qml");
|
||||
|
||||
bool ShellManager::s_forceWindowed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user