From 9747e2ec815eea7d270a04137ca7d8c6accdd506 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Tue, 6 Dec 2016 22:37:02 +0000 Subject: [PATCH] Use setproctitle to name the process --- debian/control | 1 + usr/lib/linuxmint/mintMenu/mintMenu.py | 14 ++------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/debian/control b/debian/control index f492414..b4fe344 100644 --- a/debian/control +++ b/debian/control @@ -14,6 +14,7 @@ Depends: python-gtk2, python-glade2, mint-common, python-mate-menu, python-xdg, xdg-utils, + python-setproctitle, libmatepanelapplet, libmatedesktop, mate-menus, gvfs-bin, diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index 21e6976..91e565e 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -19,24 +19,14 @@ from ctypes import * import xdg.Config import keybinding import pointerMonitor +import setproctitle GObject.threads_init() gdk = CDLL("libgdk-x11-2.0.so.0") # Rename the process -architecture = commands.getoutput("uname -a") -if (architecture.find("x86_64") >= 0): - libc = CDLL('libc.so.6') - libc.prctl(15, 'mintmenu', 0, 0, 0) -else: - import dl - if os.path.exists('/lib/libc.so.6'): - 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) +setproctitle.setproctitle('mintmenu') # i18n gettext.install("mintmenu", "/usr/share/linuxmint/locale")