Package: emacs Version: 1:27.1+1-2 Severity: normal Tags: a11y upstream X-Debbugs-Cc: za...@panix.com
I’ve been experimenting with running emacs as a systemd “user service”, which is an upstream-supported configuration (see /usr/lib/systemd/user/emacs.service). I use GNOME for my desktop. At about the same time that emacs 27.1 landed in unstable, I noticed emacs start prompting me to unlock my ssh key via the mini-buffer instead of via the desktop-wide password prompt. It turns out that this is because emacs is no longer aware of the desktop-wide ssh agent, because it’s not picking up all the environment variable settings that it ought to. Specifically, these environment variables are set for a random GUI application invoked from the GNOME launcher, but not for emacs running as a user service: DESKTOP_SESSION=gnome GDMSESSION=gnome GDM_LANG=en_US.UTF-8 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_SETUP_DISPLAY=:1 IM_CONFIG_PHASE=1 QT_IM_MODULE=ibus SESSION_MANAGER=local/moxana:@/tmp/.ICE-unix/2195,unix/moxana:/tmp/.ICE-unix/2195 SSH_AGENT_LAUNCHER=openssh SSH_AUTH_SOCK=/run/user/1000/keyring/ssh WAYLAND_DISPLAY=wayland-0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.UOX3S0 XDG_CURRENT_DESKTOP=GNOME XDG_MENU_PREFIX=gnome- XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=gnome XDG_SESSION_TYPE=wayland XMODIFIERS=@im=ibus SSH_AUTH_SOCK is the one causing my immediate problem, but several others look like they could also be trouble for Emacs users, such as everything to do with input methods. zw -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.9.0-1-amd64 (SMP w/32 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages emacs depends on: ii emacs-gtk 1:27.1+1-2 emacs recommends no packages. emacs suggests no packages. -- no debconf information