File 0002-yast2-software.patch of Package mate-menu

--- a/mate_menu/plugins/system_management.py
+++ b/mate_menu/plugins/system_management.py
@@ -142,15 +142,16 @@ class pluginclass( object ):
     def do_standard_items( self ):
 
         if ( self.showPackageManager == True ):
-            if os.path.exists("/usr/bin/synaptic-pkexec"):
-                Button2 = easyButton("synaptic", self.iconsize, [_("Package Manager")], -1, -1 )
-                Button2.connect( "clicked", self.ButtonClicked, "/usr/bin/synaptic-pkexec" )
-            elif os.path.exists("/usr/bin/software-center"):
-                Button2 = easyButton("softwarecenter", self.iconsize, [_("Package Manager")], -1, -1 )
-                Button2.connect( "clicked", self.ButtonClicked, "/usr/bin/software-center" )
-            elif os.path.exists("/usr/share/applications/ubuntu-mate-software.desktop"):
+            if os.path.exists("/sbin/yast2") or \
+               os.path.exists("/usr/share/applications/YaST2/sw_single.desktop"):
+                Button2 = easyButton("yast-sw_single", self.iconsize, [_("YaST2 Software Manager")], -1, -1 )
+                Button2.connect("clicked", self.ButtonClicked, "xdg-su -c '/sbin/yast2 sw_single'")
+            elif os.path.exists("/usr/bin/gnome-software"):
+                Button2 = easyButton("org.gnome.Software", self.iconsize, [_("Software Centre")], -1, -1 )
+                Button2.connect("clicked", self.ButtonClicked, "/usr/bin/gnome-software")
+            elif os.path.exists("/usr/bin/gpk-application"):
                 Button2 = easyButton("system-software-install", self.iconsize, [_("Package Manager")], -1, -1 )
-                Button2.connect("clicked", self.ButtonClicked, "/usr/bin/ubuntu-mate-welcome --software-only")                    
+                Button2.connect("clicked", self.ButtonClicked, "/usr/bin/gpk-application")
             Button2.show()
             self.systemBtnHolder.pack_start( Button2, False, False, 0 )
             self.mateMenuWin.setTooltip( Button2, _("Install, remove and upgrade software packages") )
openSUSE Build Service is sponsored by