regarding #4 would it be possible to open/close presentations in the background.
At the moment, when you have a presentation in presentation-mode, opening another presentation would set that one in the foreground.
If possible, always open presentation in background and add a parameter to the openPresentation function to force it in the foreground (like it is now).
for closing in background you could add a parameter into the endPresentation function to specify a path and check if its in path a the array of open presentation.
If no parameter is specified, close the active one, if its specified search and close or throw an error or do nothing
regarding #4 would it be possible to open/close presentations in the background.
At the moment, when you have a presentation in presentation-mode, opening another presentation would set that one in the foreground.
If possible, always open presentation in background and add a parameter to the openPresentation function to force it in the foreground (like it is now).
for closing in background you could add a parameter into the endPresentation function to specify a path and check if its in path a the array of open presentation. If no parameter is specified, close the active one, if its specified search and close or throw an error or do nothing