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
|
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
|
||||||
|
@ -339,8 +339,11 @@ 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):
|
||||||
os.system("xdg-open apt://" + pkg_name + " &")
|
if os.path.exists("/usr/bin/apturl"):
|
||||||
self.mintMenuWin.hide()
|
os.system("/usr/bin/apturl apt://%s &" % pkg_name)
|
||||||
|
else:
|
||||||
|
os.system("xdg-open apt://" + pkg_name + " &")
|
||||||
|
self.mintMenuWin.hide()
|
||||||
|
|
||||||
def __del__( self ):
|
def __del__( self ):
|
||||||
print u"Applications plugin deleted"
|
print u"Applications plugin deleted"
|
||||||
|
Loading…
Reference in New Issue
Block a user