Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6
mate-menu
mate-menu-yast2-software.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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 )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor