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
					
				
					 1 changed files with 7 additions and 6 deletions
				
			
		
							
								
								
									
										13
									
								
								src/gajim.py
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								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 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue