OBS-URL: https://build.opensuse.org/package/show/X11:MATE:Factory/mate-menu?expand=0&rev=16
27 lines
1.7 KiB
Diff
27 lines
1.7 KiB
Diff
--- a/mate_menu/plugins/system_management.py
|
|
+++ b/mate_menu/plugins/system_management.py
|
|
@@ -149,18 +149,16 @@ class pluginclass( object ):
|
|
return True
|
|
|
|
if ( self.showPackageManager == True ):
|
|
- if pathExists("synaptic-pkexec"):
|
|
+ if pathExists("/sbin/yast2") or \
|
|
+ pathExists("/usr/share/applications/YaST2/sw_single.desktop"):
|
|
Button2 = easyButton("synaptic", self.iconsize, [_("Package Manager")], -1, -1 )
|
|
- Button2.connect( "clicked", self.ButtonClicked, "synaptic-pkexec" )
|
|
+ Button2.connect( "clicked", self.ButtonClicked, "xdg-su -c '/sbin/yast2 sw_single'" )
|
|
elif pathExists("gnome-software"):
|
|
Button2 = easyButton("org.gnome.Software", self.iconsize, [_("Package Manager")], -1, -1 )
|
|
Button2.connect( "clicked", self.ButtonClicked, "gnome-software" )
|
|
- elif pathExists("software-center"):
|
|
- Button2 = easyButton("softwarecenter", self.iconsize, [_("Package Manager")], -1, -1 )
|
|
- Button2.connect( "clicked", self.ButtonClicked, "software-center" )
|
|
- elif pathExists("ubuntu-mate-welcome"):
|
|
+ elif pathExists("gpk-application"):
|
|
Button2 = easyButton("system-software-install", self.iconsize, [_("Package Manager")], -1, -1 )
|
|
- Button2.connect("clicked", self.ButtonClicked, "ubuntu-mate-welcome --software-only")
|
|
+ Button2.connect("clicked", self.ButtonClicked, "gpk-application")
|
|
try:
|
|
Button2.show()
|
|
self.systemBtnHolder.pack_start( Button2, False, False, 0 )
|