Skip to content

Conversation

@matthewdva
Copy link

This pull request will enable osc to unlock a gnome-keyring when running on a headless system/session.

This problem is the supporting python modules for SecretStorage and dependencies do not have method for unlocking a gnome-keyring when not run from a GUI. As a result osc fails with python trace-back messages when attempting to use a gnome-keyring on an headless session.

This request alone is not completely self contained. To be successful both a keyring daemon and dbus will need to be running. Starting these are outside the scope. This request will allow for a graceful error/exit in this situation.

I am open to suggestions on rewording the the error messages if needed.

@pep8speaks
Copy link

pep8speaks commented Feb 21, 2022

Hello @matthewdva! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-03-12 00:17:24 UTC

@lgtm-com
Copy link

lgtm-com bot commented Feb 21, 2022

This pull request introduces 5 alerts when merging 78c0adc into fe6a50f - view on LGTM.com

new alerts:

  • 3 for Unused local variable
  • 1 for Testing equality to None
  • 1 for Except block handles 'BaseException'

Corrected issues related to Style guide for Python

Correct PEP8 over indentation
@marcus-h
Copy link
Member

marcus-h commented Mar 22, 2022 via email

@matthewdva
Copy link
Author

matthewdva commented Mar 23, 2022 via email

@marcus-h
Copy link
Member

marcus-h commented Mar 23, 2022 via email

@mcepl
Copy link
Contributor

mcepl commented Apr 29, 2025

Marcus, I agree with you. The overall best place for this functionality is likely in the python-keyring or dependent packages.

Moreover, running hardcoded binary is hardly the idea how the Gnome KeyRing authors envisioned it to be started. I don’t use Gnome myself, but I can imagine that the whole thing could be started by some DBus call or something?

Anyway, I am quite certain that you should start by filing a bug at https://github.com/jaraco/keyring and start the discussion there.

Perhaps, jaraco/keyring#710, jaraco/keyring#561, or jaraco/keyring#514 ? However, I really don’t know about the system, this is just a result of a minute long look at their issue tracker. Also, https://github.com/jaraco/keyring/#using-keyring-on-headless-linux-systems

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

Successfully merging this pull request may close these issues.

4 participants