From dc82198db9dd4224b55810227c966cf3f3a2015a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 2 Jan 2022 20:53:33 +0100 Subject: [PATCH] mambatray: run plasma-discover and pkcon in every kind of sessione (KDE and LXQt) --- src/mambatray | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/mambatray b/src/mambatray index 7e29474..ffe73ee 100755 --- a/src/mambatray +++ b/src/mambatray @@ -1,6 +1,6 @@ #!/usr/bin/python3 # mambatray 2 -# Copyright (C) 2011-2021 by Silvan Calarco +# Copyright (C) 2011-2022 by Silvan Calarco # Copyright (C) 2011 by michiamophil # Distributed under the terms of the GPL version 3 FLOSS License # @@ -142,7 +142,7 @@ class SystemTrayIcon(QSystemTrayIcon): version = _("Error: Unable to find /etc/openmamba-release") QMessageBox.about(self.menu, _("About"), "
"+_("openmamba control center")+"" - "

Copyright(c) 2011-2021 by Silvan Calarco" + "

Copyright(c) 2011-2022 by Silvan Calarco" "
Copyright(c) 2011 by michiamophil" "

"+_("System info:")+"
" ""+_(version)+"
https://openmamba.org
") @@ -161,21 +161,11 @@ class SystemTrayIcon(QSystemTrayIcon): def softwareManager(self): #self.setProxyForSmart() - if desktop_session == 'plasma': - softwareManagerProcess.execute("/usr/bin/plasma-discover") - elif desktop_session == 'kde': - softwareManagerProcess.execute("/opt/kde/bin/apper") - else: - softwareManagerProcess.execute("/usr/bin/gpk-application") + softwareManagerProcess.execute("/usr/bin/plasma-discover") def softwareCheckUpgrades(self): #self.setProxyForSmart() - if desktop_session == 'plasma': - softwareCheckUpgradesProcess.start("/usr/bin/pkcon", ['refresh', 'force']) - elif desktop_session == 'kde': - softwareCheckUpgradesProcess.start("/usr/bin/plasma-discover") - else: - softwareCheckUpgradesProcess.start("/usr/bin/gpk-update-viewer") + softwareCheckUpgradesProcess.start("/usr/bin/pkcon", ['refresh', 'force']) def refreshPackagesCache(self): #self.setProxyForSmart()