Add platform tag for Tails AppImage

This commit is contained in:
tobtoht 2022-03-12 15:19:36 +01:00
parent 34e5703f9c
commit af696f4d56
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -1529,7 +1529,11 @@ QString MainWindow::getPlatformTag() {
return "win";
#endif
#ifdef Q_OS_LINUX
if (!qEnvironmentVariableIsEmpty("APPIMAGE")) {
bool isAppImage = !qEnvironmentVariableIsEmpty("APPIMAGE");
if (TailsOS::detect() && isAppImage) {
return "tails-appimage";
}
if (isAppImage) {
return "linux-appimage";
}
return "linux";