nxcloud
nxcloud copied to clipboard
Feature request: nxcloud without need for libdbus
It would be nice to be able to nxcloud (even with reduced functionality) without the need for libdbus. On minimal server systems libdbus is not installed by default. As I don't have root rights there, it would be great to still be able to run nxcloud there.
I have my own very primitive NextCloud downloader that only supports downloading from shares that require a token. Is this also supported?
https://github.com/aertslab/nextcloud_share_url_downloader
Hello, thanks for the feature request!
I would have to do some testing but I think that this might still work without libdbus installed, the libdbus dependency is for the crate keyring to allow the authentication to be securely stored. However as a fallback (if it can't communicate with the keyring) it can stores the username and app password (base64 encoded) in the .cache/nxcloud_auth.txt
. Unfortunately the app does require libdbus-dev for compile on cargo, maybe there is a way to add keyring as a feature flag, I'm not sure if cargo lets you install with feature flags?
That is not supported yet but sounds like a cool addition, I could definitely look into adding support for that when I get some time. Otherwise, feel free to work on it and submit a pull request if you feel inclined. Cool project btw!
I am installing it by cloning it from github and compiling the local copy, so if I can disable that feature in my build, it is fine.
I managed to compile and run it on my laptop.
There should at least be an option to provide the password in a hidden way (like sudo password prompt in terminal).
# typing: "my_password", but invisible
❯ read -s -i 'password:' password_variable
❯ echo "${password_variable}"
my_password
nxcloud
does not work for the NextCloud instance I have access to, as the login username is not the same as the username used in https://example.com/nextcloud/remote.php/dav/files/ (SAML2 authentication).
See my comment on: https://github.com/nextcloud/documentation/issues/1771
That is a good point, I was thinking about making it so that if you type login, any fields that are left out then asked, with the password being hidden. For that second part thanks for pointing that out, I didn't realize that was possible so I'll definitely need to fix it. Thanks!