From 065001b10eeb58c6d2b8f30f70fdb33fbc1a8e3f Mon Sep 17 00:00:00 2001 From: BigDawnGhost Date: Fri, 12 Jun 2026 01:31:00 +0800 Subject: [PATCH] fix(hypr): remove --all dbus env import to prevent stale workspace token Since Hyprland 0.55, exec-once commands inherit HL_INITIAL_WORKSPACE_TOKEN. 'dbus-update-activation-environment --systemd --all' imported it into the systemd user environment, so apps launched via systemd-run inherited the stale token and opened on workspace 1. Remove the --all import entirely: Hyprland's built-in systemd var import and the hardcoded $start.DBUS_SHARE_PICKER / $start.SYSTEMD_SHARE_PICKER lines below already cover the required variables, and UWSM sessions manage the environment themselves. Fixes #1766 Co-Authored-By: Claude Fable 5 --- Configs/.local/share/hypr/startup.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/Configs/.local/share/hypr/startup.conf b/Configs/.local/share/hypr/startup.conf index ddd24398ed..7ab321b3c3 100644 --- a/Configs/.local/share/hypr/startup.conf +++ b/Configs/.local/share/hypr/startup.conf @@ -4,7 +4,6 @@ # ? Assuming exec-once are launched in order as declared here # Core -exec-once = dbus-update-activation-environment --systemd --all #? Might fail so we hardcode the variables below exec-once = $start.DBUS_SHARE_PICKER # dbus-update-activation-environment (one-time setup) exec-once = $start.SYSTEMD_SHARE_PICKER # systemctl --user import-environment (one-time setup) exec-once = $start.XDG_PORTAL_RESET # resetxdgportal.sh (one-time setup)