dl module commit rocks, just put a comment, do it only in POSIX, pythonify (space after comma and all that stuff)
This commit is contained in:
parent
8f5dbaa1d1
commit
13a50ad633
13
src/gajim.py
13
src/gajim.py
|
@ -41,12 +41,13 @@ from chat_control import ChatControlBase
|
||||||
|
|
||||||
from common import exceptions
|
from common import exceptions
|
||||||
|
|
||||||
try:
|
if os.name == 'posix': # dl module is Unix Only
|
||||||
import dl
|
try: # rename the process name to gajim
|
||||||
libc = dl.open('/lib/libc.so.6')
|
import dl
|
||||||
libc.call('prctl',15,'gajim\0',0,0,0)
|
libc = dl.open('/lib/libc.so.6')
|
||||||
except:
|
libc.call('prctl', 15, 'gajim\0', 0, 0, 0)
|
||||||
pass
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import gtk
|
import gtk
|
||||||
|
|
Loading…
Reference in New Issue