Skip to content

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

Merged
kachick merged 9 commits intomainfrom
gnome-keyring-again
Jan 10, 2025
Merged

Fix gnome-online-accounts by enabling gnome-keyring and unsetting SSH_AUTH_SOCK#1037
kachick merged 9 commits intomainfrom
gnome-keyring-again

Conversation

@kachick
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner Author

kachick commented Jan 10, 2025

Comment thread nixos/desktop/default.nix Outdated
#
# 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner Author

Comment thread overlays/default.nix
configureFlags = final.lib.lists.remove "--enable-ssh-agent" previousAttrs.configureFlags;
}
);
})
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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