You are not logged in.

#1 2022-08-30 12:28:08

tontsa28
Member
From: Finland
Registered: 2022-07-11
Posts: 21

GNOME Keyring not working on BSPWM & ly

Hi everyone,

I'm having some issues with GNOME Keyring & BSPWM. It worked before I started using the ly display manager, but I have configured it to use xinitrc, so I don't think that should make a difference. Below are some related configuration files.

.xinitrc:

#!/bin/sh

source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
xrdb -merge ~/.Xresources
exec dbus-launch --exit-with-session bspwm

/etc/pam.d/login:

#%PAM-1.0

auth       required     pam_securetty.so
auth       requisite    pam_nologin.so
auth       include      system-local-login
auth       optional     pam_gnome_keyring.so
account    include      system-local-login
session    include      system-local-login
password   include      system-local-login
session    optional     pam_gnome_keyring.so auto_start

bspwmrc:

#! /bin/sh

pgrep -x sxhkd > /dev/null || sxhkd &

setxkbmap -model pc105 -layout fi,fi -option "grp:alt_shift_toggle" &
/usr/bin/lxpolkit &
/usr/bin/monitor-init.sh
picom --experimental-backends &
bspc monitor DP-4 -d 1 4 5 6 7
bspc monitor HDMI-1-0 -d 2
bspc monitor DP-1-1 -d 3
xsetroot -cursor_name left_ptr &
feh --bg-fill Downloads/pexels-ian-beckley-2440024.jpg &
~/.config/polybar/launch.sh &
#dbus-update-activation-environment --all

bspc config border_width         2
bspc config window_gap           1

bspc config split_ratio          0.52
bspc config borderless_monocle   true
bspc config gapless_monocle      true

When I run the command "systemctl --user status gnome-keyring-daemon", I get this output (is it normal?):

● gnome-keyring-daemon.service - GNOME Keyring daemon
     Loaded: loaded (/usr/lib/systemd/user/gnome-keyring-daemon.service; disabled; preset: enabled)
     Active: active (running) since Tue 2022-08-30 15:01:57 EEST; 22min ago
TriggeredBy: ● gnome-keyring-daemon.socket
   Main PID: 529 (gnome-keyring-d)
      Tasks: 4 (limit: 19040)
     Memory: 6.1M
        CPU: 12ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/gnome-keyring-daemon.service
             └─529 /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --control-directory=/run/user/1000/keyring

Aug 30 15:01:57 arch gnome-keyring-daemon[529]: GNOME_KEYRING_CONTROL=/run/user/1000/keyring
Aug 30 15:01:57 arch systemd[520]: Started GNOME Keyring daemon.
Aug 30 15:02:06 arch gnome-keyring-daemon[529]: The Secret Service was already initialized
Aug 30 15:02:06 arch gnome-keyring-d[529]: The Secret Service was already initialized

I do have libsecret, gnome-keyring and libgnome-keyring installed. When I tried to use sync in VSCode, I got an error which said something about the keyring and "timeout" (can't remember the exact error message). What is going wrong? Please let me know if any other files are needed.

Offline

#2 2022-08-30 14:30:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,223

Re: GNOME Keyring not working on BSPWM & ly

It worked before I started using the ly display manager

iirc "ly" sets a bogus $DBUS_SESSION_BUS_ADDRESS or so, see https://github.com/fairyglade/ly/issues/380
(I'm sure there're some threads about this, but searching for something w/ the ingenious name "ly" is rather painfull…)

And this here

exec dbus-launch --exit-with-session bspwm

is too late and likely glosses over the problem…

Offline

Board footer

Powered by FluxBB