Use apturl directly if it's installed (instead of relying on MIME types being properly assigned)
This commit is contained in:
parent
5cb8cb4184
commit
82f74d45aa
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -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
|
||||
|
||||
* Call mate-screensaver-command instead of xdg-screensaver in MATE
|
||||
|
@ -339,6 +339,9 @@ 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):
|
||||
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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user