And yes, the XAUTHORITY and Firefox WebGL issues do not occur with lightdm instead of xdm.
]]>You can
a) keep the workaround
b) file a bug, https://gitlab.freedesktop.org/xorg/app/xdm (no idea whether this will ever be addressed)
c) stop using xdm and use xinit instead (esp. if this is virtually a single-user system, you can just autologin to a locked session)
Does this have anything to do with the issue? … guess not
Exporting XAUTHORITY to Firefox in the case where WebGL would not work (using XDM and .Xauthority does exist), does allow WebGL to work. Interesting...
test -e $HOME/.Xauthority && export XAUTHORITY=$HOME/.Xauthority
startxfce4
?
]]>Also, I noticed this when running "systemctl status xdm-archlinux.service". Does this have anything to do with the issue?
10月 04 16:40:27 GUNGNIR-160126L xdm[9444]: pam_systemd_home(xdm:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
10月 04 16:40:27 GUNGNIR-160126L xdm[9444]: pam_unix(xdm:session): session opened for user ggreywolfe(uid=1000) by (uid=0)
10月 04 16:40:27 GUNGNIR-160126L xdm[9444]: pam_env(xdm:session): deprecated reading of user environment enabled
EDIT: Enabling systemd-homed.service didn't change anything except for pam_systemd_home saying "Not a user managed by systemd-homed: No home for user ggreywolfe known" instead, so guess not.
]]>XDM ultimately seems to be able to edit ~/.Xauthority so it's likely a transitional issue.
What if you simply delay "sleep 5; startxfce4" in .xsession?
DisplayManager.DISPLAY.userAuthDir
When xdm is unable to write to the usual user authorization file ($HOME/.Xauthority), it creates a unique file name in this directory and points the environment variable XAUTHORITY at the created file. It uses /tmp by default.
Anything about your $HOME that might inhibit xdm from writing there?
]]>https://wiki.archlinux.org/title/Getty# … al_console
https://wiki.archlinux.org/title/Xinit# … X_at_login
If autostarting startx doesn't cause and/or delaying XDM still does cause the issue, it's all about XDM handing off the xauthority.
Edit, found this ancient bug:
https://bugs.debian.org/cgi-bin/bugrepo … bug=595748
Cehck whether /tmp/.Xauth* exists in any case and whether $XAUTHORITY is exported and whether exporting it to firefox gets you ahead.
Static hostname: GUNGNIR-160126L
Icon name: computer-desktop
Chassis: desktop
Machine ID: <redacted>
Boot ID: <redacted>
Operating System: Arch Linux
Kernel: Linux 5.14.8-arch1-1
Architecture: x86-64
Hardware Vendor: System manufacturer
Hardware Model: System Product Name
and "loginctl session-status":
1 - ggreywolfe (1000)
Since: Sun 2021-10-03 17:32:35 JST; 5h 49min ago
Leader: 486 (xdm)
Seat: seat0; vc2
Display: :0
Service: xdm; type x11; class user
State: active
Unit: session-1.scope
├─ 486 "-:0 "
├─ 535 /bin/sh -ls -c /home/ggreywolfe/.xsession
├─ 542 xfce4-session
├─ 601 /usr/bin/ssh-agent -s
├─ 610 xfwm4 --display :0.0 --sm-client-id 2499a69b9-b31c-4b59-8dfb-315de7868a5c
├─ 620 xfsettingsd --display :0.0 --sm-client-id 2ca4422ea-7c2c-4829-b358-b62f315bf07b
├─ 805 xfce4-panel --display :0.0 --sm-client-id 2abc6ed3b-352c-4b39-978a-c6cb7c8f511c
├─ 815 Thunar --sm-client-id 218a8ba42-cb5b-4dcf-a6c5-2899ee6c3443 --daemon
├─ 820 xfdesktop --display :0.0 --sm-client-id 2a11d2ab7-0ffb-42c7-98ff-71427798d8f1
├─ 824 xfce4-power-manager --restart --sm-client-id 2fdcffd40-26a7-4aa8-b3fa-5bb8224b962c
├─ 830 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libsystray.so 6 10485767 systray ステータストレイプラグイン ステータス通知アイテム(アプリケーションインジケーター)とレガシーシステムトレイアイテムを提供します
├─ 831 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libpulseaudio-plugin.so 8 10485768 pulseaudio "PulseAudio プラグイン" "PulseAudio サウンドシステムの音量を調整します"
├─ 833 bash /home/ggreywolfe/.local/share/Steam/steam.sh
├─ 834 "/opt/discord/Discord --start-minimized"
├─ 837 /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
├─ 841 xscreensaver -no-splash
├─ 854 xscreensaver-systemd
├─ 863 nm-applet
├─ 875 /usr/lib/xfce4/notifyd/xfce4-notifyd
├─ 881 /usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/panel/plugins/libnotification-plugin.so 10 10485769 notification-plugin デスクトップ通知プラグイン Xfceパネルのための通知プラグイン
├─ 957 "/opt/discord/Discord --type=zygote --no-zygote-sandbox"
├─ 964 "/opt/discord/Discord --type=zygote"
├─ 1008 "/opt/discord/Discord --type=zygote"
├─ 1087 "/opt/discord/Discord --type=gpu-process --field-trial-handle=12791045075849075106,17303719905615602359,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand --enable-crash-reporter=52a81dca-f304-427c-ad4c-2f427df8f96f,no_channel --global-crash-keys=52a81dca-f304-427c-ad4c-2f427df8f96f,no_channel,_companyName=Discord Inc.,_productName=Discord,_version=0.0.16 --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --shared-files"
├─ 1096 "/opt/discord/Discord --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=12791045075849075106,17303719905615602359,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand --lang=ja --service-sandbox-type=none --enable-crash-reporter=52a81dca-f304-427c-ad4c-2f427df8f96f,no_channel --global-crash-keys=52a81dca-f304-427c-ad4c-2f427df8f96f,no_channel,_companyName=Discord Inc.,_productName=Discord,_version=0.0.16 --shared-files=v8_context_snapshot_data:100"
├─ 1189 /home/ggreywolfe/.local/share/Steam/ubuntu12_32/steam
├─ 1208 fcitx
├─ 1213 /usr/bin/dbus-daemon --syslog --fork --print-pid 4 --print-address 6 --config-file /usr/share/fcitx/dbus/daemon.conf
├─ 1217 /usr/bin/fcitx-dbus-watcher unix:abstract=/tmp/dbus-xuxJOJtGLx,guid=4513f007072c7074d1516d6761596aa6 1213
├─ 1220 /usr/lib/mozc/mozc_server
├─ 1286 "/opt/discord/Discord --type=utility --utility-sub-type=audio.mojom.AudioService --field-trial-handle=12791045075849075106,17303719905615602359,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand --lang=ja --service-sandbox-type=none --enable-crash-reporter=52a81dca-f304-427c-ad4c-2f427df8f96f,no_channel --global-crash-keys=52a81dca-f304-427c-ad4c-2f427df8f96f,no_channel,_companyName=Discord Inc.,_productName=Discord,_version=0.0.16 --shared-files=v8_context_snapshot_data:100"
├─ 2817 /home/ggreywolfe/.local/share/Steam/ubuntu12_32/steam
├─ 2818 ./steamwebhelper -lang=ja_JP -cachedir=/home/ggreywolfe/.local/share/Steam/config/htmlcache -steampid=1189 -buildid=1631912732 -steamid=0 -cachedir=/home/ggreywolfe/.local/share/Steam/config/htmlcache -steamuniverse=Public -realm=Global -clientui=/home/ggreywolfe/.local/share/Steam/clientui --enable-blink-features=ResizeObserver,Worklet,AudioWorklet --enable-media-stream --enable-smooth-scrolling --password-store=basic --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --disable-quick-menu
├─ 2877 "/home/ggreywolfe/.local/share/Steam/ubuntu12_64/steamwebhelper --type=zygote --no-sandbox --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --product-version=Valve Steam Client --lang=en_US.UTF-8"
├─ 2887 ./steamwebhelper --type=gpu-process --field-trial-handle=16697939023582109814,15779274798968400921,131072 --disable-features=MimeHandlerViewInCrossProcessFrame --no-sandbox --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt "--product-version=Valve Steam Client" --lang=en_US.UTF-8 --gpu-preferences=KAAAAAAAAAAgAAAgAAAAAAAAYAAAAAAAEAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAA --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --service-request-channel-token=13927304781312119581
├─ 2913 "/home/ggreywolfe/.local/share/Steam/ubuntu12_64/steamwebhelper --type=utility --field-trial-handle=16697939023582109814,15779274798968400921,131072 --disable-features=MimeHandlerViewInCrossProcessFrame --lang=ja --service-sandbox-type=network --no-sandbox --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --product-version=Valve Steam Client --lang=en_US.UTF-8 --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --service-request-channel-token=515573569965054466 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101"
├─ 3001 "/home/ggreywolfe/.local/share/Steam/ubuntu12_64/steamwebhelper --type=renderer --no-sandbox --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --field-trial-handle=16697939023582109814,15779274798968400921,131072 --disable-features=MimeHandlerViewInCrossProcessFrame --enable-blink-features=ResizeObserver,Worklet,AudioWorklet --lang=ja --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --product-version=Valve Steam Client --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=15004320509952261343 --renderer-client-id=5 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101"
├─ 3097 "/home/ggreywolfe/.local/share/Steam/ubuntu12_64/steamwebhelper --type=renderer --no-sandbox --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --field-trial-handle=16697939023582109814,15779274798968400921,131072 --disable-features=MimeHandlerViewInCrossProcessFrame --enable-blink-features=ResizeObserver,Worklet,AudioWorklet --lang=ja --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --product-version=Valve Steam Client --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=8606296099194471995 --renderer-client-id=7 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101"
├─ 3108 "/home/ggreywolfe/.local/share/Steam/ubuntu12_64/steamwebhelper --type=renderer --no-sandbox --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --field-trial-handle=16697939023582109814,15779274798968400921,131072 --disable-features=MimeHandlerViewInCrossProcessFrame --enable-blink-features=ResizeObserver,Worklet,AudioWorklet --lang=ja --log-file=/home/ggreywolfe/.local/share/Steam/logs/cef_log.txt --product-version=Valve Steam Client --num-raster-threads=4 --enable-main-frame-before-activation --service-request-channel-token=4889976528813647209 --renderer-client-id=9 --shared-files=v8_context_snapshot_data:100,v8_natives_data:101"
├─ 4013 "/opt/1Password/1password --silent"
├─ 4016 "/opt/1Password/1password --type=zygote --no-zygote-sandbox"
├─ 4017 "/opt/1Password/1password --type=zygote"
├─ 4019 "/opt/1Password/1password --type=zygote"
├─ 4051 "/opt/1Password/1password --type=gpu-process --field-trial-handle=16124013403893572902,1216049521518017459,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --shared-files"
├─ 4073 "/opt/1Password/1password --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=16124013403893572902,1216049521518017459,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --lang=ja --service-sandbox-type=none --standard-schemes=resource,file-icon --enable-sandbox --secure-schemes --bypasscsp-schemes=resource,file-icon --cors-schemes --fetch-schemes=resource,file-icon --service-worker-schemes --streaming-schemes --shared-files=v8_context_snapshot_data:100"
├─ 4116 /opt/1Password/1Password-KeyringHelper
├─ 6293 /usr/lib/firefox/firefox "https://bbs.archlinux.org/viewtopic.php?id=270117"
├─ 6502 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 96 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─ 6552 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 5619 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─ 6592 /opt/1Password/1Password-BrowserSupport /home/ggreywolfe/.mozilla/native-messaging-hosts/com.1password.1password.json {d634138d-c276-4fc8-924b-40a0ea21d284}
├─ 6634 /opt/1Password/1Password-KeyringHelper
├─ 6734 "/opt/discord/Discord --type=renderer --autoplay-policy=no-user-gesture-required --field-trial-handle=12791045075849075106,17303719905615602359,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess,WinRetrieveSuggestionsOnlyOnDemand --lang=ja --enable-crash-reporter=52a81dca-f304-427c-ad4c-2f427df8f96f,no_channel --global-crash-keys=52a81dca-f304-427c-ad4c-2f427df8f96f,no_channel,_companyName=Discord Inc.,_productName=Discord,_version=0.0.16 --app-path=/opt/discord/resources/app.asar --no-sandbox --no-zygote --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=12 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100 --enable-node-leakage-in-renderers"
├─ 8290 /usr/lib/firefox/firefox -contentproc -childID 11 -isForBrowser -prefsLen 5732 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─ 8527 /usr/lib/firefox/firefox -contentproc -parentBuildID 20210923165649 -prefsLen 6182 -prefMapSize 244216 -appdir /usr/lib/firefox/browser 6293 true rdd
├─13086 /usr/lib/firefox/firefox -contentproc -childID 33 -isForBrowser -prefsLen 6481 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─13219 /usr/lib/firefox/firefox -contentproc -childID 37 -isForBrowser -prefsLen 6481 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─14887 /usr/lib/firefox/firefox -contentproc -childID 45 -isForBrowser -prefsLen 6481 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─14922 /usr/lib/firefox/firefox -contentproc -childID 46 -isForBrowser -prefsLen 6481 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─15079 "/usr/share/vscodium-bin/codium --no-sandbox --unity-launch /home/ggreywolfe/hostnamectl_output.txt"
├─15081 "/usr/share/vscodium-bin/codium --type=zygote --no-zygote-sandbox --no-sandbox"
├─15082 "/usr/share/vscodium-bin/codium --type=zygote --no-sandbox"
├─15110 "/usr/share/vscodium-bin/codium --type=gpu-process --field-trial-handle=10412945569329277911,15656210836487549122,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --disable-color-correct-rendering --no-sandbox --gpu-preferences=UAAAAAAAAAAgAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAACAAAAAAAAAA= --shared-files"
├─15127 "/usr/share/vscodium-bin/codium --type=utility --utility-sub-type=network.mojom.NetworkService --field-trial-handle=10412945569329277911,15656210836487549122,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --lang=ja --service-sandbox-type=none --no-sandbox --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --shared-files=v8_context_snapshot_data:100"
├─15158 "/usr/share/vscodium-bin/codium --type=renderer --disable-color-correct-rendering --no-sandbox --field-trial-handle=10412945569329277911,15656210836487549122,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --lang=ja --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --app-path=/usr/share/vscodium-bin/resources/app --no-sandbox --no-zygote --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100 --vscode-window-config=vscode:09312ade-9625-4ca8-88ad-b881fe8705c1"
├─15181 /usr/share/vscodium-bin/codium --inspect-port=0 /usr/share/vscodium-bin/resources/app/out/bootstrap-fork --type=extensionHost --skipWorkspaceStorageLock
├─15189 "/usr/share/vscodium-bin/codium --type=renderer --disable-color-correct-rendering --no-sandbox --field-trial-handle=10412945569329277911,15656210836487549122,131072 --disable-features=CookiesWithoutSameSiteMustBeSecure,SameSiteByDefaultCookies,SpareRendererForSitePerProcess --lang=ja --standard-schemes=vscode-webview,vscode-file --secure-schemes=vscode-webview,vscode-file --bypasscsp-schemes --cors-schemes=vscode-webview,vscode-file --fetch-schemes=vscode-webview,vscode-file --service-worker-schemes=vscode-webview --streaming-schemes --app-path=/usr/share/vscodium-bin/resources/app --no-sandbox --no-zygote --disable-blink-features=Auxclick --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=7 --no-v8-untrusted-code-mitigations --shared-files=v8_context_snapshot_data:100 --vscode-window-config=vscode:e836ad7a-206f-46b2-8d9b-110b2f1ab442"
├─15215 /usr/share/vscodium-bin/codium /usr/share/vscodium-bin/resources/app/out/bootstrap-fork --type=ptyHost
├─15533 /usr/lib/firefox/firefox -contentproc -childID 48 -isForBrowser -prefsLen 8981 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─15623 /usr/lib/firefox/firefox -contentproc -childID 49 -isForBrowser -prefsLen 8981 -prefMapSize 244216 -jsInit 285716 -parentBuildID 20210923165649 -appdir /usr/lib/firefox/browser 6293 true tab
├─15792 /usr/bin/xfce4-terminal
├─15837 bash
└─15851 loginctl session-status
10月 03 17:32:35 GUNGNIR-160126L systemd[1]: Started Session 1 of User ggreywolfe.
10月 03 17:52:00 GUNGNIR-160126L sudo[4340]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
10月 03 17:52:00 GUNGNIR-160126L sudo[4340]: ggreywolfe : TTY=pts/0 ; PWD=/home/ggreywolfe ; USER=root ; COMMAND=/usr/bin/pacman -R at-spi2-core
10月 03 17:52:00 GUNGNIR-160126L sudo[4340]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
10月 03 17:52:00 GUNGNIR-160126L sudo[4340]: pam_unix(sudo:session): session closed for user root
10月 03 17:52:05 GUNGNIR-160126L sudo[4342]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
10月 03 17:52:05 GUNGNIR-160126L sudo[4342]: ggreywolfe : TTY=pts/0 ; PWD=/home/ggreywolfe ; USER=root ; COMMAND=/usr/bin/pacman -R at-spi2-core at-spi2-atk
10月 03 17:52:05 GUNGNIR-160126L sudo[4342]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
10月 03 17:52:05 GUNGNIR-160126L sudo[4342]: pam_unix(sudo:session): session closed for user root
10月 03 21:47:43 GUNGNIR-160126L xscreensaver-auth[12886]: pam_warn(xscreensaver:account): function=[pam_sm_acct_mgmt] flags=0 service=[xscreensaver] terminal=[:0.0] user=[ggreywolfe] ruser=[<unknown>] rhost=[<unknown>]
(hopefully there isn't any sensitive information in there...)
]]>