You are watching: Error: xdg_runtime_dir not set in the environment.
So, I want to start swaywm, but I get this error.
First, I installed sudo and ran the following command to preserve the XDG_RUNTIME_DIR environment variable:
sudo —preserve-env swaysudo —preserve-env=XDG_RUNTIME_DIR swayI have also tried editing the /usr/local/etc/sudoers file by adding the following line:
Defaults setenv += “XDG_RUNTIME_DIR”I have also rebooted after saving the sudoers file, and yet, sway still complains of this error.
How do I set the XDG_RUNTIME_DIR environment variable / how do I tell my system to not accidentally clear this variable / or how do I get sway to launch despite this error but because of another unknown error?
This thread is archived
New comments cannot be posted and votes cannot be cast
Sort by: best
Why are you using sudo to launch sway?
When I last tried it (on linux), you just launch it as a normal user
Op · 7m
Ok, I logged into root and typed “sway”, and I get the same error.
See more: Trabajos En San Luis Rio Colorado : 84 Vacantes, Bolsa De Trabajo San Luis Rio Colorado, Sonora
So it isn’t an permission issue. It’s that the XDG_RUNTIME_DIR environment variable is not set in the environment and idk how to fix it.
Continue this thread
More posts from the freebsd community
Continue browsing in r/freebsd
News and discussion about FreeBSD
Created May 25, 2008
Top posts february 25th 2021Top posts of february, 2021Top posts 2021
helphyakkendana-hashigozake.com coinshyakkendana-hashigozake.com premiumhyakkendana-hashigozake.com gifts
Back to Top