You are not logged in.
Pages: 1
In my programming environments I want to do some plotting which fails (tried in racket and python) with the following error (Authorization required, but no authorization protocol specified.
I suspect that my locale is somehow screwed or something is up with Xauthority.
In this thread it seemed to be a very similar problem.
It does not seem connected to my emacs configuration as I run the same configuration on another laptop where the issue is not present.
Please let me know if you need further information and thanks for the help.
Here is the basic error message (trying to plot something in emacs using ipython shell):
In [2]: Authorization required, but no authorization protocol specified
qt.qpa.xcb: could not connect to display :0Output of ps -C emacs -eww
PID TTY STAT TIME COMMAND
3173 ? Ss 0:08 /usr/bin/emacs --fg-daemon HOME=/home/geegee LANG=C LOGNAME=geegee MAIL=/var/spool/mail/geegee PATH=/home/geegee/.config/guix/current/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl SHELL=/bin/bash SYSTEMD_EXEC_PID=3173 USER=geegee XDG_DATA_DIRS=/home/geegee/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_RUNTIME_DIR=/run/user/1000 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEBUGINFOD_URLS=https://debuginfod.archlinux.org DESKTOP_SESSION=plasma DISPLAY=:0 ETS_TOOLKIT=qt GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/geegee/.gtkrc-2.0:/home/geegee/.config/gtkrc-2.0 GTK3_MODULES=xapp-gtk3-module GTK_MODULES=canberra-gtk-module GTK_RC_FILES=/etc/gtk/gtkrc:/home/geegee/.gtkrc:/home/geegee/.config/gtkrc INFOPATH=/home/geegee/.config/guix/current/share/info: KDE_APPLICATIONS_AS_SCOPE=1 KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 MOTD_SHOWN=pam MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket PWD=/home/geegee QT_AUTO_SCREEN_SCALE_FACTOR=0 SESSION_MANAGER=local/lenovocarbonx1:@/tmp/.ICE-unix/708,unix/lenovocarbonx1:/tmp/.ICE-unix/708 XAUTHORITY=/home/geegee/.Xauthority XCURSOR_SIZE=24 XCURSOR_THEME=Oxygen_Yellow XDG_CACHE_HOME=/home/geegee/.cache XDG_CONFIG_DIRS=/home/geegee/.config/kdedefaults:/etc/xdg XDG_CONFIG_HOME=/home/geegee/.config XDG_CURRENT_DESKTOP=KDE XDG_DATA_HOME=/home/geegee/.local/share XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_STATE_HOME=/home/geegee/.local/state XDG_VTNR=1 NOTIFY_SOCKET=/run/user/1000/systemd/notify MANAGERPID=587 INVOCATION_ID=3dbd33fe963c4ea680d381e9f4baff42 JOURNAL_STREAM=8:46139My xinit.rc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
setxkbmap -option terminate:ctrl_alt_bksp
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
exec gnome-sessionWhy is there a gnome-session? (Some years ago I changed from gnome to KDE so I assume this is some leftover? How to properly purify the system of Gnome?)
Content of .Xauthority file (seems extremely strange)
\0\0lenovocarbonx1\00\0MIT-MAGIC-COOKIE-1\0
`upYi/bIf I change this to the output of xauth list
lenovocarbonx1/unix:0 MIT-MAGIC-COOKIE-1 0dab6096dd75a57059692fee9a8062d7then no windows are able to start anymore.
output of locale -a
C
C.UTF-8
de_DE.utf8
en_US.utf8
POSIXOutput of hostnamectl
Static hostname: lenovocarbonx1
Icon name: computer-laptop
Chassis: laptop ? Machine ID: 8d1f76cc18e14b1b9d13ca251fd6d177
Boot ID: ce6319e200f84715a71db068bc4885fb
Operating System: Arch Linux
Kernel: Linux 6.2.8-arch1-1
Architecture: x86-64
Hardware Vendor: Lenovo
Hardware Model: ThinkPad X1 Carbon 5th
Firmware Version: N1MET37W (1.22 )
Firmware Date: Tue 2017-07-04Last edited by XpYunkr (2023-04-13 07:19:23)
Offline
Okay thread can be closed. I still don't understand it completely but basically at startup I run an emacs daemon and when I start an emacs client that connects to the server then
everything works fine. So I suspect it has something to do with the fact that the emacs service locks down the resource?
Offline
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
exec gnome-sessionHow do you actually start the session (cause that'll get you an xterm and maybe twm or no session at all)
loginctl sessio-statusI suspect that my locale is somehow screwed
localectl
localeseems extremely strange
It's binary
If I change this to the output of xauth list
You break that file.
Okay thread can be closed.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
at startup I run an emacs daemon
How and when exactly?
The OP only shows one emacs process?
Online
Pages: 1