-
Notifications
You must be signed in to change notification settings - Fork 87
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
What if i want to use an app relying on this library on wslv2 and have no ui/gnome/seahorse? #48
Comments
Don't know if it's helpful but you can see how we do on travis: https://github.com/zalando/go-keyring/blob/master/.travis.yml (headless linux env). The question is if you really need a keyring in the environment you're running. What is the purpose of the app, what is it storing in the keyring? Maybe a password could be passed in a different way for headless cases? |
Ok, I'm confused. I understand that you're not using TravisCI any longer, but GitHub's own CI, and your link above ought to be updated to https://github.com/zalando/go-keyring/blob/master/.github/workflows/go.yml However, as you so well commented on this file, your past usage of Python's Your question about the purpose of such a usage of I admit I haven't been using Anyway, I digress; I'll keep digging for a simple solution — similar to the one you used for Ubuntu 16.04 — which will work under 20.04 and possibly future versions as well. If not... well, I wonder if there isn't a way to have |
Replying to myself... it seems that I had basically everything to run the solution/hack proposed by @Markus7811 — all that I was missing was
Once that was in place, I could run the commands suggested by @Markus7811 and
will list
(among a couple of others, but that's the important one)
To partially automate the issue, I used Still, I find it utterly terrible to have installed several MBytes of useless X11/Gnome libraries only to get a default keyring installed and operational... |
I'm also running into this issue and haven't found a workaround. I started with a fresh instance and installed all the dependencies but my code that works other OSes fail. One difference from @GwynethLlewelyn is the backends:
Any suggestions? I'm a bit of a linux n00b, definitely a WSL2 n00b. More details of what I have installed:
|
@beriberikix I wonder what Linux distro you chose when installing WSL2... the differences might be there, but, then again, I had never even heard of WSL before this thread, so I hardly know what I'm talking about 😹 You should be able to see what distro you have by running While Microsoft has made available several popular distros, the truth is that they have partnered with Canonical for this exciting project — the makers of Ubuntu — so it's reasonable to assume that Canonical & Microsoft will test first if everything works as it should on Ubuntu. |
You would think, right??
I even tried deleting my VM and set it up fresh, same issue :( |
@beriberikix wrote:
Interesting. You are running Ubuntu 20.04.2 LTS. That ought to mean that everything should work under your installation... that's pretty much what I'm running as well. I know I'm piping in very late and I'm assuming you have fixed your issue by now... |
It doesn't, Ubuntu relies on * WSL2 is starting to support X11 via WSLg, but it's not remotely reliable with This is still an issue for me. |
HM!... I was pretty sure that my Ubuntu installation did not have X11 and/or Gnome Desktop installed — since it's a server and does not require wasting CPU + RAM in launching a GUI that will never be used. On the other hand, it's true that Just because apt-rdepends-gnome-keyring.txt It's a long list, and it does include My conclusion is that you can run things like Of course, I didn't actually test this under WSL/WSL2, and according to a reply on AskUbuntu/StackExchange, In my case, just having a Now, I cannot claim that my approach can be flawlessly reproduced — since I have, over time, installed so many things that I don't remember exactly what steps I took — but I would recommend that at least you give it a try. If you are reinstalling from scratch, deliberately installing Ubuntu as a server (as opposed to a desktop) may help you out to exclude any GUI-specific things from the very beginning. But, as said, I'm actually running Ubuntu on top of bare metal — things might obviously be different when using WSL/WSL2... Good luck! |
Really struggling using an app that uses this library on wslv2.
Installed keyring, but have no gnome, no gkeyring, no seahorse ... how can i create a keyring via the cli?
seahorse tells me:
(seahorse:23589): Gtk-WARNING **: 23:33:20.817: cannot open display:
gkeyring isn't maintained anymore
It would be nice if you could give me a hint, how i can initialize the default keyring via a terminal without x and gnome.
Update:
Found:
https://www.reddit.com/r/ProtonMail/comments/81zmto/linux_keyring_issues/
microsoft/WSL#4254
Ok, after installing some dbus, gnome keyring etc. i think this is working, even if it is no good solution:
if anyone knows how to "automate" this, please let me know
ok, best thin i found til now:
Add this to your bashrc, or zshrc or ...
!!! modify the exec statement to your usecase !!!
Cons:
The text was updated successfully, but these errors were encountered: