From 13a50ad633bbf55b83f02abfcc5036a9c2685458 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos <kourem@gmail.com> Date: Tue, 29 Aug 2006 21:59:58 +0000 Subject: [PATCH] dl module commit rocks, just put a comment, do it only in POSIX, pythonify (space after comma and all that stuff) --- src/gajim.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 1726980054..978bc3fa61 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -41,12 +41,13 @@ from chat_control import ChatControlBase from common import exceptions -try: - import dl - libc = dl.open('/lib/libc.so.6') - libc.call('prctl',15,'gajim\0',0,0,0) -except: - pass +if os.name == 'posix': # dl module is Unix Only + try: # rename the process name to gajim + import dl + libc = dl.open('/lib/libc.so.6') + libc.call('prctl', 15, 'gajim\0', 0, 0, 0) + except: + pass try: import gtk -- GitLab