Currently rclone uses open.Start
to open authentication URLs. This is a perfect default because it uses the OS default browser application.
However there are some cases where using a different browser would simplify re-authentication:
Here is an example:
My OS default browser is Firefox and I don't want to change that globally.
Unfortunately I need to use Edge for my office MS365 applications like teams or outlook. For this reason, Edge almost always has an active SSO session with MS Entra IDP. Thus being able to configure Edge as the URL handler for my onedrive remote config would greatly simplify reconnects.
I noticed that the open package also offers func StartWith(input string, appName string) error
which could be used in case a browser app is specified in the remote config.
I guess this would also allow configuration of custom URL handlers e.g. for headless systems.
P.S.: I know that there are browser selector addons that allow URL based rules for dispatching the default browser. But this won't solve my problem, because all rclone authentication URLs seem to start at http://127.0.0.1:53682/auth
. So there is no way to distinguish between an owncloud and a google drive remote.