mambatray: remove usage and dependency for discover; use 'pkcon refresh force' for the check updates function
This commit is contained in:
parent
8b563c1edb
commit
9f70e7d0bd
@ -164,7 +164,6 @@ class SystemTrayIcon(QSystemTrayIcon):
|
||||
def softwareManager(self):
|
||||
#self.setProxyForSmart()
|
||||
if desktop_session == 'plasma':
|
||||
#softwareManagerProcess.execute("/usr/bin/plasma-discover", ['--mode', 'Browsing'])
|
||||
softwareManagerProcess.execute("/usr/bin/apper")
|
||||
elif desktop_session == 'kde':
|
||||
softwareManagerProcess.execute("/opt/kde/bin/apper")
|
||||
@ -174,7 +173,7 @@ class SystemTrayIcon(QSystemTrayIcon):
|
||||
def softwareCheckUpgrades(self):
|
||||
#self.setProxyForSmart()
|
||||
if desktop_session == 'plasma':
|
||||
softwareCheckUpgradesProcess.start("/usr/bin/plasma-discover", ['--mode', 'Update'])
|
||||
softwareCheckUpgradesProcess.start("/usr/bin/pkcon", ['refresh', 'force'])
|
||||
elif desktop_session == 'kde':
|
||||
softwareCheckUpgradesProcess.start("/opt/kde/bin/apper", ['--updates'])
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user