1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-07 14:24:22 +01:00

Testing/Experimental:

- Fixed an indentation problem
- Use misc.RenameProcess for process renaming in wicd.py

Experimental:
- Make the encryption template file parsing used for the GUI a little more robust.
This commit is contained in:
imdano
2008-05-09 21:07:41 +00:00
parent 6e0fe132b9
commit a6252d5baa
3 changed files with 49 additions and 35 deletions

10
wicd.py
View File

@@ -64,15 +64,7 @@ else:
if getattr(dbus, 'version', (0, 0, 0)) >= (0, 41, 0):
import dbus.glib
if sys.platform == 'linux2':
# Set process name. Only works on Linux >= 2.1.57.
try:
import dl
libc = dl.open('/lib/libc.so.6')
libc.call('prctl', 15, 'wicd\0', 0, 0, 0) # 15 is PR_SET_NAME
except Exception:
print 'Failed to rename wicd process'
pass
misc.RenameProcess("wicd")
if __name__ == '__main__':
wpath.chdir(__file__)