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

Fix gnome-online-accounts by enabling gnome-keyring and unsetting SSH_AUTH_SOCK #1037

Merged
merged 9 commits into from
Jan 10, 2025

Conversation

kachick
Copy link
Owner

@kachick kachick commented Jan 10, 2025

Closes GH-1034 and Closes GH-1036

Fixes GH-1015 with updating GH-978 and GH-814

@kachick
Copy link
Owner Author

kachick commented Jan 10, 2025

It resolves goa problem, I can use google drive simply now 🙄

However #814 #714 again

> envs
SSH_AUTH_SOCK=/run/user/1001/keyring/ssh

@kachick
Copy link
Owner Author

kachick commented Jan 10, 2025

@@ -102,7 +102,7 @@
# https://github.com/NixOS/nixpkgs/issues/101616
#
# Using mkforce for https://discourse.nixos.org/t/gpg-smartcard-for-ssh/33689/3
services.gnome.gnome-keyring.enable = lib.mkForce false;
# services.gnome.gnome-keyring.enable = lib.mkForce false;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I simply resolve this after NixOS/nixpkgs#310978?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should remember why I should avoid gnome-keyring in SSH_AUTH_SOCK

#714
NixOS/nixpkgs#140824

Copy link
Owner Author

configureFlags = final.lib.lists.remove "--enable-ssh-agent" previousAttrs.configureFlags;
}
);
})
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this change

> echo $SSH_AUTH_SOCK
/run/user/1001/ssh-agent

However it takes minutes for build...

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebuilding my system increased 6 minutes 😢

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another idea is overriding the SSH_AUTH_SOCK with following steps.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However it might make confusion for many existing code.

@kachick kachick changed the title Enable gnome-keyring again Enable gnome-keyring again by unsetting SSH_AUTH_SOCK Jan 10, 2025
@kachick kachick marked this pull request as ready for review January 10, 2025 11:37
@kachick kachick changed the title Enable gnome-keyring again by unsetting SSH_AUTH_SOCK Fix gnome-online-accounts by enabling gnome-keyring and unsetting SSH_AUTH_SOCK Jan 10, 2025
@kachick kachick merged commit c3dbe6b into main Jan 10, 2025
15 checks passed
@kachick kachick deleted the gnome-keyring-again branch January 10, 2025 11:59
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.

gnome-online-accounts-gtk making authorize_uri_get_collection_cb(): Failed to get session keyring
1 participant