mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-31 02:27:01 -04:00 
			
		
		
		
	Use a stable path for listener socket on macOS
This commit is contained in:
		
							parent
							
								
									e316b304d6
								
							
						
					
					
						commit
						c17f560dad
					
				| @ -44,11 +44,7 @@ def socket_address(which): | ||||
|             sock_name = '{}-calibre-{}.socket'.format(ascii_filename(user).replace(' ', '_'), which) | ||||
|             ans = '\0' + sock_name | ||||
|         else: | ||||
|             # tempdir already contains calibre in its path | ||||
|             sock_name = f'{os.getuid()}-{which}.sock' | ||||
|             from tempfile import gettempdir | ||||
|             tmp = force_unicode(gettempdir(), filesystem_encoding) | ||||
|             ans = os.path.join(tmp, sock_name) | ||||
|             ans = f'/tmp/calibre-{os.getuid()}-{which}.sock' | ||||
|     return ans | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user