diff --git a/debian/changelog b/debian/changelog index 704e93e..301f136 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mintmenu (5.3.3) maya; urgency=low + + * Use apturl directly if it's installed (instead of relying on MIME types being properly assigned) + + -- Clement Lefebvre Wed, 09 May 2012 13:49:19 +0100 + mintmenu (5.3.2) maya; urgency=low * Call mate-screensaver-command instead of xdg-screensaver in MATE diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 16b4b43..9da485a 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -339,8 +339,11 @@ class pluginclass( object ): self.panel_position = mateconf.client_get_default().get_int("/apps/panel/applets/" + applet + "/position") + 1 def apturl_install(self, widget, pkg_name): - os.system("xdg-open apt://" + pkg_name + " &") - self.mintMenuWin.hide() + if os.path.exists("/usr/bin/apturl"): + os.system("/usr/bin/apturl apt://%s &" % pkg_name) + else: + os.system("xdg-open apt://" + pkg_name + " &") + self.mintMenuWin.hide() def __del__( self ): print u"Applications plugin deleted"