diff --git a/src/muonapt/QAptActions.cpp b/src/muonapt/QAptActions.cpp --- a/src/muonapt/QAptActions.cpp +++ b/src/muonapt/QAptActions.cpp @@ -391,16 +391,20 @@ int winID = m_mainWindow->effectiveWinId(); const QString kdesu = QFile::decodeName(CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 "/kdesu"); - const QString editor = QStandardPaths::findExecutable("software-properties-kde"); + QString editor = QStandardPaths::findExecutable("software-properties-qt"); + if (editor.isEmpty()) { + editor = QStandardPaths::findExecutable("software-properties-kde"); + } if (editor.isEmpty()) { QString text = i18nc("@label", - "Could not find software-properties-kde " + "Could not find software-properties-qt " + "nor software-properties-kde " "on your system, please install it. Alternatively, you can use " "Plasma Discover to configure " "software sources."); QString title = i18nc("@title:window", - "Cannot find software-properties-kde"); + "Cannot find software-properties-qt"); KMessageBox::sorry(m_mainWindow, text, title); return; }