You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to get gnome-keyring as a systemd service with Sway and could not. I believe it was due to making sure that gnome-keyring got launched early and got the environment variable it produces properly exported to other apps.
Eventually I got gnome-keyring working with Ly, but not as a systemd service:
I eventually solved this by switching to console login-- so not using a login manager. Then I could set up gnome-keyring-daemon and related environment variables using my shell. In my case, Fish.
❯ cat .config/fish/conf.d/999-sway.fish
# If running from tty1 and a graphical session has not already been started, start Sway
set TTY1 (tty)
if status --is-login && test "$TTY1" = "/dev/tty1" && test -z "$WAYLAND_DISPLAY"
# gnome-keyring prints bash-style env vars when starting, namely SSH_AUTH_SOCK
gnome-keyring-daemon --start | read --line gnome_keyring_control ssh_auth_sock
set -Ux GNOME_KEYRING_CONTROL (string split -m 1 = $gnome_keyring_control)[2]
set -Ux SSH_AUTH_SOCK (string split -m 1 = $ssh_auth_sock)[2]
set --global --export DESKTOP_SESSION "sway"
set --global --export TERMINAL "foot"
set --global --export _JAVA_AWT_WM_NONREPARENTING 1
set --global --export QT_AUTO_SCREEN_SCALE_FACTOR 1
set --global --export QT_QPA_PLATFORM wayland
set --global --export QT_WAYLAND_DISABLE_WINDOWDECORATION 1
set --global --export MOZ_ENABLE_WAYLAND 1
set --global --export MOZ_WEBRENDER 1
set --global --export MOZ_ACCELERATED 1
set --global --export BEMENU_BACKEND wayland
set --global --export GTK_THEME "Adwaita:dark"
# XDG_CURRENT_DESKTOP is used by flameshot and maybe others
set --global --export XDG_CURRENT_DESKTOP "sway"
# DON'T use exec so that environment variable inheritance works correctly.
# We name this script with the 999 prefix because the sway execution blocks and no other scripts
# will run until after it exits.
/sbin/sway
end
I tried to get gnome-keyring as a systemd service with Sway and could not. I believe it was due to making sure that gnome-keyring got launched early and got the environment variable it produces properly exported to other apps.
Eventually I got gnome-keyring working with Ly, but not as a systemd service:
fairyglade/ly#228 (comment)
Shipping a working gnome-keyring intetegration for Sway using systemd would be a helpful reference for how to do it properly.
The text was updated successfully, but these errors were encountered: