mambatray: remove usage and dependency for discover; use 'pkcon refresh force' for the check updates function

This commit is contained in:
Silvan Calarco 2019-08-15 18:53:37 +02:00
parent 8b563c1edb
commit 9f70e7d0bd

View File

@ -164,7 +164,6 @@ class SystemTrayIcon(QSystemTrayIcon):
def softwareManager(self): def softwareManager(self):
#self.setProxyForSmart() #self.setProxyForSmart()
if desktop_session == 'plasma': if desktop_session == 'plasma':
#softwareManagerProcess.execute("/usr/bin/plasma-discover", ['--mode', 'Browsing'])
softwareManagerProcess.execute("/usr/bin/apper") softwareManagerProcess.execute("/usr/bin/apper")
elif desktop_session == 'kde': elif desktop_session == 'kde':
softwareManagerProcess.execute("/opt/kde/bin/apper") softwareManagerProcess.execute("/opt/kde/bin/apper")
@ -174,7 +173,7 @@ class SystemTrayIcon(QSystemTrayIcon):
def softwareCheckUpgrades(self): def softwareCheckUpgrades(self):
#self.setProxyForSmart() #self.setProxyForSmart()
if desktop_session == 'plasma': if desktop_session == 'plasma':
softwareCheckUpgradesProcess.start("/usr/bin/plasma-discover", ['--mode', 'Update']) softwareCheckUpgradesProcess.start("/usr/bin/pkcon", ['refresh', 'force'])
elif desktop_session == 'kde': elif desktop_session == 'kde':
softwareCheckUpgradesProcess.start("/opt/kde/bin/apper", ['--updates']) softwareCheckUpgradesProcess.start("/opt/kde/bin/apper", ['--updates'])
else: else: