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):
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user