todo-cli icon indicating copy to clipboard operation
todo-cli copied to clipboard

Unable to install on Linux

Open gabriellovate opened this issue 3 years ago • 3 comments

I was not able to install and run the program on Linux. Maybe you could provide a more thorough documentation on the subject?

gabriellovate avatar Sep 15 '20 16:09 gabriellovate

Hey @gabriellovate - thanks for giving this a spin. 💯 agree that I need to provide a thorough documentation, I'll do that as soon as I can find some spare time.

Could you detail what have you tried so far, and what distro/version of Linux are you using, so I can investigate?

mehmetseckin avatar Sep 18 '20 08:09 mehmetseckin

I was able to run the linux package on an Ubuntu 18.04.4 LTS on (WSL) environment after giving full access rights to the executable:

sudo chmod 777 ./todo
./todo --help

image

However, I found out that the authentication logic does not support non-windows platforms since it uses Windows DPAPI's ProtectedData.Protect and ProtectedData.Unprotect APIs. This is not supported outside windows (see dotnet/runtime#22886)

On a side note, I found that the package also depends on xdg-utils since the authentication logic tries to open up a browser window. May need to add alternative ways to authenticate (e.g. if there's no desktop environment...)

Thanks for reporting this!

mehmetseckin avatar Sep 24 '20 14:09 mehmetseckin

I guess it's currently impossible to use ProtectData to store secure information locally, right? I think this is vital for some kind of applications. For instance, I'm developing a tool that logs to a SSH server. In order to make it more productive, credentials are caches so the user doesn't need to provide them every time. I need a way to store this sensitive data. ProtectedData is the only way I've found, but it's Windows-only.

SuperJMN avatar Feb 15 '22 22:02 SuperJMN