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

diff -aur a/mate_menu/plugins/system_management.py b/mate_menu/plugins/system_management.py
--- a/mate_menu/plugins/system_management.py
+++ b/mate_menu/plugins/system_management.py
@@ -142,13 +142,13 @@
     def do_standard_items( self ):
 
         if ( self.showPackageManager == True ):           
-            if os.path.exists("/usr/bin/software-center") or os.path.exists("/usr/bin/synaptic-pkexec"):
-                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" )
+            if os.path.exists("/usr/bin/gpk-application") or os.path.exists("/usr/share/applications/YaST2/sw_single.desktop") or os.path.exists("/sbin/yast2"):
+                if os.path.exists("/sbin/yast2") and 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/gpk-application"):
+                    Button2 = easyButton("system-software-install", self.iconsize, [_("Package Manager")], -1, -1 )
+                    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