Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Forward updates for the Linux varsion to the site
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkanovikov committed Nov 9, 2020
1 parent df655c4 commit 678be1a
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,6 @@ void StartUpManager::showUpdateDialogImpl()

#ifdef Q_OS_LINUX
isSupported = false;
const QString distroName = QSysInfo::prettyProductName().toLower();
const QStringList supportedDistros({"ubuntu", "mint"});
for (const QString &supportedDistro : supportedDistros) {
if (distroName.contains(supportedDistro)) {
isSupported = true;
break;
}
}
#endif

//
Expand All @@ -365,8 +357,6 @@ void StartUpManager::showUpdateDialogImpl()
//
#ifdef Q_OS_WIN
if (QProcess::startDetached(m_updateFile)) {
#elif defined Q_OS_LINUX
if (QProcess::startDetached("software-center", { m_updateFile })) {
#else
if (QDesktopServices::openUrl(QUrl::fromLocalFile(m_updateFile))) {
#endif
Expand Down

0 comments on commit 678be1a

Please sign in to comment.