Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on Linux #18

Open
gabriellovate opened this issue Sep 15, 2020 · 3 comments
Open

Unable to install on Linux #18

gabriellovate opened this issue Sep 15, 2020 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@gabriellovate
Copy link

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

@mehmetseckin mehmetseckin added bug Something isn't working help wanted Extra attention is needed labels Sep 17, 2020
@mehmetseckin
Copy link
Owner

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
Copy link
Owner

mehmetseckin commented Sep 24, 2020

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!

@SuperJMN
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants