mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-19 09:06:54 -04:00
main-method-arguments to the running instance. Command line arguments are treated by showing the corresponding folder in the GUI. If an argument is a folder, it is shown directly. If an argument is a .masterkey.json file, the parent directory is shown. If an argument does not exist, but the folder can be created, the newly created folder is shown. It was necessary to move the main function away from the MainApplication class because running the main method of a class, which extends the javafx Application class, will start a non-daemon thread. This prevents the VM from exiting naturally. OSX needs its own mechanism, which is implemented in OS-specific code. It is vital that the required handler is added in the main thread of the application, not the Java FX thread, which is a bit awkward to implement. Since it is possible to open .cryptomator packages on OSX, this extension is now hidden in the folder list.