Some apps can't find their main qml file. Error messages like:
"file:///build/messaging-app-gcXPE6/messaging-app-0.1+16.04.20160831/src/qml/messaging-app.qml: File not found"
Seems due to code like the following in config.h.in. Probably needs to consider the value of $SNAP or just be a little more forgiving.
inline bool isRunningInstalled() { static bool installed = (QCoreApplication::applicationDirPath() == QDir(("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@")).canonicalPath()); return installed; }
inline QString messagingAppDirectory() { if (isRunningInstalled()) { return QString("@CMAKE_INSTALL_PREFIX@/@MESSAGING_APP_DIR@/"); } else { return QString("@CMAKE_SOURCE_DIR@/src/qml/"); } }
inline QString ubuntuPhonePluginPath() { if (isRunningInstalled()) { return QString::null; } else { return QString("@CMAKE_SOURCE_DIR@/"); } }
Some apps can't find their main qml file. Error messages like:
"file:/ //build/ messaging- app-gcXPE6/ messaging- app-0.1+ 16.04.20160831/ src/qml/ messaging- app.qml: File not found"
Seems due to code like the following in config.h.in. Probably needs to consider the value of $SNAP or just be a little more forgiving.
inline bool isRunningInstal led() { on::application DirPath( ) ==
QDir(( "@CMAKE_ INSTALL_ PREFIX@ /@CMAKE_ INSTALL_ BINDIR@ ")).canonicalPa th());
static bool installed = (QCoreApplicati
return installed;
}
inline QString messagingAppDir ectory( ) { lled()) { "@CMAKE_ INSTALL_ PREFIX@ /@MESSAGING_ APP_DIR@ /"); "@CMAKE_ SOURCE_ DIR@/src/ qml/");
if (isRunningInsta
return QString(
} else {
return QString(
}
}
inline QString ubuntuPhonePlug inPath( ) { lled()) { "@CMAKE_ SOURCE_ DIR@/") ;
if (isRunningInsta
return QString::null;
} else {
return QString(
}
}