Use apturl directly if it's installed (instead of relying on MIME types being properly assigned)

This commit is contained in:
Clement Lefebvre 2012-05-09 14:20:42 +01:00
parent 5cb8cb4184
commit 82f74d45aa
2 changed files with 11 additions and 2 deletions

6
debian/changelog vendored
View File

@ -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 <root@linuxmint.com> Wed, 09 May 2012 13:49:19 +0100
mintmenu (5.3.2) maya; urgency=low mintmenu (5.3.2) maya; urgency=low
* Call mate-screensaver-command instead of xdg-screensaver in MATE * Call mate-screensaver-command instead of xdg-screensaver in MATE

View File

@ -339,6 +339,9 @@ class pluginclass( object ):
self.panel_position = mateconf.client_get_default().get_int("/apps/panel/applets/" + applet + "/position") + 1 self.panel_position = mateconf.client_get_default().get_int("/apps/panel/applets/" + applet + "/position") + 1
def apturl_install(self, widget, pkg_name): def apturl_install(self, widget, pkg_name):
if os.path.exists("/usr/bin/apturl"):
os.system("/usr/bin/apturl apt://%s &" % pkg_name)
else:
os.system("xdg-open apt://" + pkg_name + " &") os.system("xdg-open apt://" + pkg_name + " &")
self.mintMenuWin.hide() self.mintMenuWin.hide()