patrykcoding / rcloneExplorer

rclone explorer for Android
MIT License
346 stars 50 forks source link

Ability to edit remotes #248

Open JAP1st opened 5 years ago

JAP1st commented 5 years ago

Hi, it would be great to be able to edit existing remotes within the app itself or with some sort of internal command line. I would find this very useful when making minor modifications without needing to recreate the remote, or when updating the refresh token using oauth2.

There are currently some workarounds, such as having to delete and recreate a remote or having to import an already existing configuration file. However, the first method means more steps to the user and the second needs an extra installation on another device (which is probably the case for most users but perhaps not all, and it also poses errors for Box which does not allow to use the same token in two devices: https://rclone.org/box/#invalid-refresh-token).

Thanks for all the great work!

x0b commented 5 years ago

A bit of background: The underlying problem here is that rclone does not have a machine-usable config interface. This means that in addition to remote type specific config wizards we would also need remote type specific config edit options that set your options on the interactive rclone command line.

There has already been some discussion on how to improve rclone, but this is a non-trivial feature and it will probably be some time before it is ready.

I've also thought about providing power users with an internal command line, but again, this would need some degree of terminal emulation and is non trivial.

Now, onto the specific problem: Box' behavior of invalidating tokens on multiple devices makes this problem worse, but we need a general solution. The current idea is to add a menu option to (re)authorize remotes. This should work for your issue, right?

JAP1st commented 5 years ago

Hi, thanks a lot for the explanation. Yes, a menu option to reauthorise remotes would be great. Thank you!