Open redhog opened 4 years ago
@BackOrder do you have any experience scripting LibreOffice?
Ah that's a good start... So how do I run code at startup and at shutdown? And is it possible to call python code (which in turn can call smlib)?
https://superuser.com/questions/1135850/how-do-i-run-a-libreoffice-macro-from-the-command-line-without-the-gui https://ask.libreoffice.org/en/question/145481/struggling-to-auto-run-a-macro/
There is a problem though. What happens when LibreOffice crashes? It won't be running the shutdown script.
Hm, good question. I guess you could have it save state every now and then? What I'm thinking is run a script at startup that registers as an SMLib client, and on the SMLib save message, goes through the list of open windows and saves them, and saves that list, and generates a RestartCommand matching the saved list...
LibreOffice has UNO to communicate with different programming language. The SDK is available for Python. That would be more in line with what you want to do.
https://help.libreoffice.org/6.3/en-US/text/sbasic/python/python_programming.html
Moved the initial zoom problem to https://github.com/redhog/InfiniteGlass/issues/11
Figure out a way to have LibreOffice save the list of currently open files on exit.