Local Shell Commands in SB+

We already have shell.run(). This is nice for scripting stuff on the server, but what if I'm synced to Silverbullet desktop, and I want to open, say, the terminal/file explorer locally in the local space folder. AFAICT currently there's no way of doing this. What if SB+ exposes, say, child_process.spawn() to Space Lua? Of course that would also require some kind of editor.isDesktop() API, to prevent errors in the web client.

Also, currently the desktop injects commands like Desktop: Open Dashboard into the client. I guess this can also be achieved if we (zef, cause of course PRs to the desktop client aren't possible) introduce a Desktop: Open in File Manager command in the desktop client?

When you say “open the terminal”, or do you mean to open a terminal application or you want to have some sort of standard and standard out way of interacting with sub processes?

Well, I think it would be nice to have direct access to spawning subprocesses from Space Lua. Of course that makes the security situation even more fishy than it already was, so I'd also be really content if there would just be two fixed commands for just Open in File Manager and Open in Terminal (yes, with the latter I mean a terminal emulator, like Alacritty/Ghostty)