On Address-book App Iam checking for SNAP env var. Like this:
static QString fullPath(const QString &fileName)
{
QString result;
QString appPath = QCoreApplication::applicationDirPath();
if (qEnvironmentVariableIsSet(SNAP_PATH)) {
result = qgetenv(SNAP_PATH) +
QStringLiteral("/usr/share/address-book-app/") + fileName;
} else if (appPath.startsWith(ADDRESS_BOOK_DEV_BINDIR)) {
result = QString(ADDRESS_BOOK_APP_DEV_DATADIR) + fileName;
} else if (clickModeEnabled()) {
result = appPath + QStringLiteral("/share/address-book-app/") +
fileName;
} else {
result = QString(ADDRESS_BOOK_APP_INSTALL_DATADIR) + fileName;
}
return result;
}
** Changed in: address-book-app (Ubuntu)
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1629009
Title:
Does not work inside a snap due to hardcoded paths
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/address-book-app/+bug/1629009/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs