Commit f17aade9 authored by Julius Künzel's avatar Julius Künzel
Browse files

[Packaging Type] Try to detect snap automatically

parent 4e8f3317
Pipeline #132797 passed with stage
in 12 minutes and 37 seconds
...@@ -133,6 +133,8 @@ int main(int argc, char *argv[]) ...@@ -133,6 +133,8 @@ int main(int argc, char *argv[])
QString appPath = qApp->applicationDirPath(); QString appPath = qApp->applicationDirPath();
if (appPath.contains(QStringLiteral("/tmp/.mount_"))) { if (appPath.contains(QStringLiteral("/tmp/.mount_"))) {
packageType = QStringLiteral("appimage"); packageType = QStringLiteral("appimage");
} if (appPath.contains(QStringLiteral("/snap"))) {
packageType = QStringLiteral("snap");
} else { } else {
qDebug() << "Could not detect package type, probably default? App dir is" << qApp->applicationDirPath(); qDebug() << "Could not detect package type, probably default? App dir is" << qApp->applicationDirPath();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment