mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	new env variable to specify start note, #1532
This commit is contained in:
		| @@ -31,10 +31,7 @@ function initNotSyncedOptions(initialized, startNotePath = 'root', opts = {}) { | |||||||
|     optionService.createOption('openTabs', JSON.stringify([ |     optionService.createOption('openTabs', JSON.stringify([ | ||||||
|         { |         { | ||||||
|             notePath: startNotePath, |             notePath: startNotePath, | ||||||
|             active: true, |             active: true | ||||||
|             sidebar: { |  | ||||||
|                 widgets: [] |  | ||||||
|             } |  | ||||||
|         } |         } | ||||||
|     ]), false); |     ]), false); | ||||||
|  |  | ||||||
| @@ -103,6 +100,15 @@ function initStartupOptions() { | |||||||
|             log.info(`Created missing option "${name}" with default value "${value}"`); |             log.info(`Created missing option "${name}" with default value "${value}"`); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     if (process.env.TRILIUM_START_NOTE_ID) { | ||||||
|  |         optionService.setOption('openTabs', JSON.stringify([ | ||||||
|  |             { | ||||||
|  |                 notePath: process.env.TRILIUM_START_NOTE_ID, | ||||||
|  |                 active: true | ||||||
|  |             } | ||||||
|  |         ])); | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| function getKeyboardDefaultOptions() { | function getKeyboardDefaultOptions() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user