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

Is this compatible with Linux/Mono? #7

Open
ThePirate42 opened this issue Apr 24, 2023 · 10 comments
Open

Is this compatible with Linux/Mono? #7

ThePirate42 opened this issue Apr 24, 2023 · 10 comments

Comments

@ThePirate42
Copy link

It isn't clear from the readme.

@djherbis
Copy link
Owner

@ThePirate42 I haven't tested with mono so I don't know but you're welcome to try and let us know!

@ThePirate42
Copy link
Author

When I try to use the plugin (built locally), keepass says that the plugin isn't compatible with the current keepass version (2.54). Is this a Linux only problem?

@ThePirate42
Copy link
Author

immagine

When I run with --debug, this is the error message (sorry for the screenshot, the text cannot be copied).

@ThePirate42
Copy link
Author

Running keepass with sudo (administrator rights) makes it work (but isn't an acceptable workaround, GUI applications should never run as administrator on linux unless they are developed for it).

This may be relevant: https://stackoverflow.com/questions/10254954/mono-linux-socket-denied

@djherbis
Copy link
Owner

Id try switching the env var STDPROXY_PORT above 1024 (default is 500). I think ports below 1024 are privileged process only on Linux.

@ThePirate42
Copy link
Author

ThePirate42 commented Mar 10, 2024

I found the issue: opening a port with a number under 1024 on an unix system requires root access by default, which means the 500 default is not ok. Could you consider using an higher port as a default? Possibly not a round number, to avoid collisions.

BTW, I managed to open keepass with the plugin loaded without errors! I still haven't tested if it actually works.

EDIT: I see now that you had already replied 😅

@ThePirate42
Copy link
Author

When I try to use it, I get this 😭:
immagine

@ThePirate42
Copy link
Author

I think this is the fault of this mono bug. I'll try to generate a certificate with the legacy option.

@ThePirate42
Copy link
Author

It works! If it's ok with you, I wanted to make a pull request with a unix version of createcert.cmd (and maybe an update to the readme)

Doing the whole install.cmd could be more complicated, because there isn't a setx equivalent on linux, and adding user environment variables (not system wide) programmatically isn't a very common practice. What do you think?

@djherbis
Copy link
Owner

Sounds good to me, thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants