From 07432a39b2ac3bbadf7fb4c27c815ab7194fdda8 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 8 Oct 2009 13:46:39 +0100 Subject: [PATCH] Removed dependency on mintinstall --- debian/changelog | 1 + debian/control | 2 +- .../linuxmint/mintMenu/plugins/system_management.py | 11 ++++++----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0826676..5b0cec2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ mintmenu (4.8.1) helena; urgency=low * Dependency on mint-common * Updated calls to newer pyinotify API * Updated path of keybinder API + * Removed dependency on mintinstall -- Clement Lefebvre Thu, 8 Oct 2009 10:26:00 +0000 diff --git a/debian/control b/debian/control index 8daa018..e3f5274 100644 --- a/debian/control +++ b/debian/control @@ -7,6 +7,6 @@ Standards-Version: 3.7.2 Package: mintmenu Architecture: all -Depends: python (>= 2.4), python (<< 3), python-gtk2, python-glade2, mintinstall, deskbar-applet, mint-common +Depends: python (>= 2.4), python (<< 3), python-gtk2, python-glade2, deskbar-applet, mint-common Description: Advanced Gnome menu One of the most advanced menus under Linux. MintMenu supports filtering, favorites, easy-uninstallation, autosession, and many other features. diff --git a/usr/lib/linuxmint/mintMenu/plugins/system_management.py b/usr/lib/linuxmint/mintMenu/plugins/system_management.py index f9de343..c3fec75 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/system_management.py +++ b/usr/lib/linuxmint/mintMenu/plugins/system_management.py @@ -97,11 +97,12 @@ class pluginclass( object ): #Add standard items def do_standard_items( self ): - Button1 = easyButton( "/usr/lib/linuxmint/mintInstall/icon.svg", self.iconsize, [_("Software manager")], -1, -1 ) - Button1.connect( "clicked", self.ButtonClicked, "mintinstall" ) - Button1.show() - self.systemBtnHolder.pack_start( Button1, False, False ) - self.mintMenuWin.setTooltip( Button1, _("Browse and install available software") ) + if os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg"): + Button1 = easyButton( "/usr/lib/linuxmint/mintInstall/icon.svg", self.iconsize, [_("Software manager")], -1, -1 ) + Button1.connect( "clicked", self.ButtonClicked, "mintinstall" ) + Button1.show() + self.systemBtnHolder.pack_start( Button1, False, False ) + self.mintMenuWin.setTooltip( Button1, _("Browse and install available software") ) Button2 = easyButton( "synaptic", self.iconsize, [_("Package manager")], -1, -1 ) Button2.connect( "clicked", self.ButtonClicked, "gksu /usr/sbin/synaptic" )