File mate-menu-yast2-software.patch of Package mate-menu
--- 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 )