always respect VENCORD_USER_DATA_DIR
This commit is contained in:
		
							parent
							
								
									6bc278ec71
								
							
						
					
					
						commit
						41f18a4ef3
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -16,9 +16,9 @@ export const PORTABLE = | ||||||
|     !existsSync(join(vesktopDir, "Uninstall Vesktop.exe")); |     !existsSync(join(vesktopDir, "Uninstall Vesktop.exe")); | ||||||
| 
 | 
 | ||||||
| const LEGACY_DATA_DIR = join(app.getPath("appData"), "VencordDesktop", "VencordDesktop"); | const LEGACY_DATA_DIR = join(app.getPath("appData"), "VencordDesktop", "VencordDesktop"); | ||||||
| export const DATA_DIR = PORTABLE | export const DATA_DIR = | ||||||
|     ? join(vesktopDir, "Data") |     process.env.VENCORD_USER_DATA_DIR || (PORTABLE ? join(vesktopDir, "Data") : join(app.getPath("userData"))); | ||||||
|     : process.env.VENCORD_USER_DATA_DIR || join(app.getPath("userData")); | 
 | ||||||
| mkdirSync(DATA_DIR, { recursive: true }); | mkdirSync(DATA_DIR, { recursive: true }); | ||||||
| 
 | 
 | ||||||
| // TODO: remove eventually
 | // TODO: remove eventually
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Vendicated
						Vendicated