Use setproctitle to name the process
This commit is contained in:
parent
75b5c98894
commit
9747e2ec81
1
debian/control
vendored
1
debian/control
vendored
@ -14,6 +14,7 @@ Depends:
|
|||||||
python-gtk2, python-glade2,
|
python-gtk2, python-glade2,
|
||||||
mint-common,
|
mint-common,
|
||||||
python-mate-menu, python-xdg, xdg-utils,
|
python-mate-menu, python-xdg, xdg-utils,
|
||||||
|
python-setproctitle,
|
||||||
libmatepanelapplet, libmatedesktop,
|
libmatepanelapplet, libmatedesktop,
|
||||||
mate-menus,
|
mate-menus,
|
||||||
gvfs-bin,
|
gvfs-bin,
|
||||||
|
@ -19,24 +19,14 @@ from ctypes import *
|
|||||||
import xdg.Config
|
import xdg.Config
|
||||||
import keybinding
|
import keybinding
|
||||||
import pointerMonitor
|
import pointerMonitor
|
||||||
|
import setproctitle
|
||||||
|
|
||||||
GObject.threads_init()
|
GObject.threads_init()
|
||||||
|
|
||||||
gdk = CDLL("libgdk-x11-2.0.so.0")
|
gdk = CDLL("libgdk-x11-2.0.so.0")
|
||||||
|
|
||||||
# Rename the process
|
# Rename the process
|
||||||
architecture = commands.getoutput("uname -a")
|
setproctitle.setproctitle('mintmenu')
|
||||||
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)
|
|
||||||
|
|
||||||
# i18n
|
# i18n
|
||||||
gettext.install("mintmenu", "/usr/share/linuxmint/locale")
|
gettext.install("mintmenu", "/usr/share/linuxmint/locale")
|
||||||
|
Loading…
Reference in New Issue
Block a user