From 755083406b65f15584cf387c0f9ff240c1e98550 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 21 Jan 2016 16:32:58 +0000 Subject: [PATCH] Don't refer to /usr/lib/linuxmint/mintInstall/icon.svg --- usr/lib/linuxmint/mintMenu/mintMenuConfig.py | 2 +- usr/lib/linuxmint/mintMenu/plugins/applications.py | 2 +- usr/lib/linuxmint/mintMenu/plugins/system_management.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/mintMenuConfig.py b/usr/lib/linuxmint/mintMenu/mintMenuConfig.py index 487cc08..8481177 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenuConfig.py +++ b/usr/lib/linuxmint/mintMenu/mintMenuConfig.py @@ -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() diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index feddfc0..8117564 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -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... diff --git a/usr/lib/linuxmint/mintMenu/plugins/system_management.py b/usr/lib/linuxmint/mintMenu/plugins/system_management.py index 4cc4c95..0776359 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/system_management.py +++ b/usr/lib/linuxmint/mintMenu/plugins/system_management.py @@ -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)