“XDG_RUNTIME_DIR is not set in the environment. Aborting.” error reported by sway whenever I attempt to launch it.

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?

Thanks.


8 comments
share
save
hide
report
60% Upvoted
This thread is archived
New comments cannot be posted and votes cannot be cast
Sort by: best



level 1
· 7m
Why are you using sudo to launch sway?

When I last tried it (on linux), you just launch it as a normal user


3
Share
ReportSave
level 2
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.


1
Share
ReportSave
Continue this thread 


More posts from the freebsd community
Continue browsing in r/freebsd

*

r/freebsd
News and discussion about FreeBSD
23.8k
Members


44

Online


Created May 25, 2008
Join
*
*
*
*

*

Top posts february 25th 2021Top posts of february, 2021Top posts 2021
helphyakkendana-hashigozake.com coinshyakkendana-hashigozake.com premiumhyakkendana-hashigozake.com gifts
aboutcareerspressadvertiseblogTermsContent policyPrivacy policyMod policy
Back to Top