Freebsd 14.1 now creates the XDG_RUNTIME_DIR for you
Pointed out by bileslav on reddit
the location is
the /var/run/xdg/ contains a directory named after your user
with the group and user permissions set to your user
inside that directory is this file
depending on your desktop on window manager you will probably still need to export the XDG_RUNTIME_DIR
in your shell config, replacing username with your username in the command below
just thought id mention it because setting up the XDG_RUNTIME_DIR
is needed for wayland and enabling hardware accelerated playback for mpv
Pointed out by bileslav on reddit
Since 14.1 you don't have to do all of that anymore.
14.1 silently (I didn't see a mention of it anywhere, planning to post here about that) brought pam_xdg.so to us, enabled by default. This thing doesXDG_RUNTIME_DIR=/var/run/xdg/vlad
for me automatically on login. It may kind of conflict with ConsoleKit2 if you have it, since that also tries to manage the runtime dir. Also, there are sysutils/pam_xdg in ports.
the location is
Code:
/var/run/xdg/
Code:
drwx--x--x 3 root wheel 3 5 Jul 12:49 xdg
the /var/run/xdg/ contains a directory named after your user
with the group and user permissions set to your user
Code:
drwx------ 2 djwilcox djwilcox 3 5 Jul 12:49 djwilcox
inside that directory is this file
Code:
-rwx------ 1 root djwilcox 0 5 Jul 12:49 xdg_session.0
depending on your desktop on window manager you will probably still need to export the XDG_RUNTIME_DIR
in your shell config, replacing username with your username in the command below
Code:
export XDG_RUNTIME_DIR="/var/run/xdg/username"
just thought id mention it because setting up the XDG_RUNTIME_DIR
is needed for wayland and enabling hardware accelerated playback for mpv