Compatible with Ubuntu 11.04 (libc.so.6 path)

This commit is contained in:
Clement Lefebvre 2011-04-12 17:44:10 +01:00
parent 69e08564fe
commit 86d91095a2
2 changed files with 12 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
mintmenu (5.1.9) katya; urgency=low
* Compatible with Ubuntu 11.04 (which changed its libc.so.6 path)
-- Clement Lefebvre <root@linuxmint.com> Tue, 12 Apr 2011 17:43:00 +0000
mintmenu (5.1.8) katya; urgency=low mintmenu (5.1.8) katya; urgency=low
* Fixed indentation issue in recent documents plugin * Fixed indentation issue in recent documents plugin

View File

@ -37,8 +37,12 @@ if (architecture.find("x86_64") >= 0):
libc.prctl(15, 'mintmenu', 0, 0, 0) libc.prctl(15, 'mintmenu', 0, 0, 0)
else: else:
import dl import dl
libc = dl.open('/lib/libc.so.6') if os.path.exists('/lib/libc.so.6'):
libc.call('prctl', 15, 'mintmenu', 0, 0, 0) libc = dl.open('/lib/libc.so.6')
libc.call('prctl', 15, 'mintmenu', 0, 0, 0)
elif os.path.exists('/lib/i386-linux-gnu/libc.so.6'):
libc = dl.open('/lib/i386-linux-gnu/libc.so.6')
libc.call('prctl', 15, 'mintmenu', 0, 0, 0)
# i18n # i18n
gettext.install("mintmenu", "/usr/share/linuxmint/locale") gettext.install("mintmenu", "/usr/share/linuxmint/locale")