summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Vogt <fabian@ritter-vogt.de>2016-12-27 17:57:35 (GMT)
committerFabian Vogt <fabian@ritter-vogt.de>2016-12-27 18:09:46 (GMT)
commit4b128419571bb2f45f1dfbdab21ae5419e02d77b (patch)
tree3d53d0025cbf78320e5bc541f837ca9647a9d8aa
parent2db9081b379614ecc19331634d31ca827b9cf9e6 (diff)
Also expose YaST repository configuration if present
Like "Expose software-properties-kde if present", but for openSUSE.
-rw-r--r--libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp b/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
index 3421cd1..3db1ad4 100644
--- a/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
+++ b/libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
@@ -99,7 +99,13 @@ PackageKitBackend::PackageKitBackend(QObject* parent)
connect(updateAction, &QAction::triggered, this, &PackageKitBackend::refreshDatabase);
m_messageActions += updateAction;
- const auto service = locateService(QStringLiteral("software-properties-kde.desktop"));
+ // Kubuntu-based
+ auto service = locateService(QStringLiteral("software-properties-kde.desktop"));
+ if (!service.isEmpty())
+ m_messageActions += createActionForService(service);
+
+ // openSUSE-based
+ service = locateService(QStringLiteral("YaST2/sw_source.desktop"));
if (!service.isEmpty())
m_messageActions += createActionForService(service);