Don't refer to /usr/lib/linuxmint/mintInstall/icon.svg

This commit is contained in:
Clement Lefebvre 2016-01-21 16:32:58 +00:00
parent 6941c0d85b
commit 755083406b
3 changed files with 4 additions and 4 deletions

View File

@ -185,7 +185,7 @@ class mintMenuConfig( object ):
self.systemHeightButton = self.builder.get_object( "systemHeightSpinButton" )
if (self.allowSystemScrollbarToggle.get_active() == False): self.systemHeightButton.set_sensitive(False)
self.allowSystemScrollbarToggle.connect("toggled", self.toggleSystemHeightEnabled )
if os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg"):
if os.path.exists("/usr/bin/mintinstall"):
self.builder.get_object( "softwaremanagercheckbutton" ).show()
else:
self.builder.get_object( "softwaremanagercheckbutton" ).hide()

View File

@ -837,7 +837,7 @@ class pluginclass( object ):
else:
shownList.append(i)
showns = True
if (not showns and os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg")):
if (not showns and os.path.exists("/usr/bin/mintinstall")):
if len(text) >= 3:
if self.current_suggestion is not None and self.current_suggestion in text:
# We're restricting our search...

View File

@ -132,8 +132,8 @@ class pluginclass( object ):
def do_standard_items( self ):
if ( self.showSoftwareManager == True ):
if os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg"):
Button1 = easyButton( "/usr/lib/linuxmint/mintInstall/icon.svg", self.iconsize, [_("Software Manager")], -1, -1 )
if os.path.exists("/usr/bin/mintinstall"):
Button1 = easyButton( "mintinstall", self.iconsize, [_("Software Manager")], -1, -1 )
Button1.connect( "clicked", self.ButtonClicked, "gksu mintinstall" )
Button1.show()
self.systemBtnHolder.pack_start( Button1, False, False, 0)