wslg icon indicating copy to clipboard operation
wslg copied to clipboard

dbus: Unable to set up transient service directory: XDG_RUNTIME_DIR "/mnt/wslg/runtime-dir" can be written by others (mode 040777)

Open kpervin opened this issue 10 months ago • 6 comments

I am unsure what is causing this to pop up in my terminal every time I start it, but both .wslconfig and .wsl.conf are blank. Could someone help me get to the root of this?

kpervin avatar Feb 21 '25 15:02 kpervin

I am also seeing this in my /mnt/wslg/stderr.log:

[08:14:49.777] <5>WSLGd: FontFolder:16: FontMonitor: start monitoring /mnt/wslg/distro/usr/share/fonts
[08:14:49.778] <5>WSLGd: FontMonitorThread:230: FontMonitor: monitoring thread started.
[08:14:49.778] <5>WSLGd: DumpMonitorFolders:127: FontMonitor: monitoring /mnt/wslg/distro/usr/share/fonts, and it is *not* added to X11 font path
dbus[18]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/mnt/wslg/runtime-dir" can be written by others (mode 040777)
dbus[15]: Unknown username "pulse" in message bus configuration file
/opt/st/stm32cubeide_1.17.0/icon.xpm: unrecognized file header 0x2f 0x2a 0x20 0x58
glamor: 'wl_drm' not supported
Missing Wayland requirements for glamor GBM backend
Failed to initialize glamor, falling back to sw
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
Errors from xkbcomp are not fatal to the X server
could not load cursor 'grabbing'
could not load cursor 'dnd-move'
could not load cursor 'dnd-copy'

soliis-jones avatar Feb 24 '25 21:02 soliis-jones

Same issue for me.

esukram avatar Feb 25 '25 07:02 esukram

Try this: chmod 0700 /mnt/wslg/runtime-dir

rodrigoptrln avatar Apr 24 '25 21:04 rodrigoptrln

Try this: chmod 0700 /mnt/wslg/runtime-dir

@rodrigoptrln Unfortunately I still have the same error and the mode has reverted to its original value upon WSL restart.

soliis-jones avatar Apr 25 '25 13:04 soliis-jones

it is caused by dbus: dbus-launch --auto-syntax

crramirez avatar Jun 18 '25 12:06 crramirez

Turning on systemd seems to fix this issue, but might break other stuff:

# sudo vim /etc/wsl.conf
[boot]
systemd=true

Karel-van-de-Plassche avatar Jul 23 '25 12:07 Karel-van-de-Plassche