obsidian-tray
obsidian-tray copied to clipboard
Reopen all vaults when relaunching app
Clicking 'Relaunch Obsidian' closes all the vault windows, but starts only the last one opened. It doesn't matter if the other open vaults have this plugin or not - the behaviour is the same.
At least re-opening all the windows is expected. But it would be better for this option to relaunch only the vault the tray icon belongs to. For that matter, renaming 'Relaunch Obsidian' to 'Relaunch Vault' would be more clear.
Hm.
It's not a 'relaunch vault' function. It's not meant to only close and reopen the current vault, and it's not meant to reopen every individual window. It's meant to close/stop the app completely, and then reopen/relaunch the app as if you had clicked the Obsidian shortcut in your start menu.
To compare: if I have multiple vaults open, kill Obsidian in task manager, and then launch Obsidian from the start menu - only one of those vaults will be re-opened. Not all of them. So, as far as I can tell, the 'relaunch Obsidian' function does behave exactly as it should, following expected default/system behaviour.
I think what you're asking for is a 'preserve vaults on relaunch' option, which would manually reopen all previously opened vaults on relaunch. I'm not sure if this is actually possible, as the separation of plugin instances across vaults and the fact that the app does fully quit and then relaunch (and so loses all local state) may make it difficult to find a way to reliably trigger which vaults should be reopened, but I'll leave this issue open until I can take a further look at it.
I see, thank you for response.
So as far as I understand now, reopening all vaults is more Obsidian issue rather than this plugin's. There was actually a similar feature request on Obsidian forum: Option: Open Last Used Vault or Open Vault Selector Just noticed - when I restart my computer without closing the vaults first, then open Obsidian, it restores both vaults.
Unless you want to work on 'Relaunch Vault' option I would consider this issue closed.