Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
mate-menu.4543
0002-yast2-software.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-yast2-software.patch of Package mate-menu.4543
--- a/mate_menu/plugins/system_management.py +++ b/mate_menu/plugins/system_management.py @@ -142,13 +142,13 @@ class pluginclass( object ): 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") )
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