we wrote a file as user but then we got it mounted as root, so file is root. so do not tb on that. thanks stellaris
This commit is contained in:
		
							parent
							
								
									0999cca7b4
								
							
						
					
					
						commit
						c7c555d8f4
					
				
					 1 changed files with 13 additions and 7 deletions
				
			
		|  | @ -206,13 +206,19 @@ def get_abspath_for_script(scriptname, want_type = False): | |||
| 			script += 'cd %s' % cwd | ||||
| 			path_to_script = cwd + '/../scripts/gajim_sm_script' | ||||
| 				 | ||||
| 			if os.path.exists(path_to_script): | ||||
| 				os.remove(path_to_script) | ||||
| 			f = open(path_to_script, 'w') | ||||
| 			script += '\nexec python -OOt gajim.py $0 $@\n' | ||||
| 			f.write(script) | ||||
| 			f.close() | ||||
| 			os.chmod(path_to_script, 0700) | ||||
| 			try: | ||||
| 				if os.path.exists(path_to_script): | ||||
| 					os.remove(path_to_script) | ||||
| 
 | ||||
| 				f = open(path_to_script, 'w') | ||||
| 				script += '\nexec python -OOt gajim.py $0 $@\n' | ||||
| 				f.write(script) | ||||
| 				f.close() | ||||
| 				os.chmod(path_to_script, 0700) | ||||
| 			except OSError: # do not traceback (could be a permission problem) | ||||
| 				#we talk about a file here | ||||
| 				s = _('Could not write to %s. Session Management support will not work') % path_to_script | ||||
| 				print >> sys.stderr, s | ||||
| 
 | ||||
| 	else: # normal user (not svn user) | ||||
| 		type = 'install' | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue