Weston should fallback if XDG_RUNTIME_DIR is not set as per the XDG specification
Pekka Paalanen
ppaalanen at gmail.com
Tue Sep 11 05:08:07 PDT 2012
On Thu, 6 Sep 2012 22:03:32 +0200
"Fred ." <eldmannen at gmail.com> wrote:
> http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
>
> "If $XDG_RUNTIME_DIR is not set applications should fall back to a
> replacement directory with similar capabilities and print a warning
> message."
>
> Weston produces the following error message when XDG_RUNTIME_DIR is not set.
> [21:43:53.365] fatal: environment variable XDG_RUNTIME_DIR is not set.
Yeah, but there is no replacement we know of.
http://lists.freedesktop.org/archives/wayland-devel/2012-June/003935.html
And another quote from IRC:
22:52 < smallfoot-> weston should work without XDG_RUNTIME_DIR
22:52 < smallfoot-> as per the spec
22:52 < smallfoot-> http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
22:52 < smallfoot-> "If $XDG_RUNTIME_DIR is not set applications should fall back to a replacement directory
with similar capabilities and print a warning message. "
23:20 < krh> smallfoot-: the funny thing is, there is no directory with similar capabilities
23:33 < smallfoot-> krh, oh, maybe ~/tmp/ or /tmp/ or /run/user/ ?
23:34 < smallfoot-> today mountall was updated in ubuntu from 2.38 to 2.40 which have /run/user/ and the prel
iminary work for XDG_RUNTIME_SUPPORT, the other part is missing is a PAM module
23:36 < smallfoot-> https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/894391
23:38 < thiago> $HOME could be network-mounted
23:38 < thiago> it could also be SMB, which means no sockets
23:38 < thiago> /tmp is insecure, since other users can write to it
23:39 < thiago> and /run/user/$USER *is* XDG_RUNTIME_DIR. If your distro creates it, why doesn't it set the v
ariable?
23:43 < smallfoot-> oh
23:43 < thiago> but we could create a secure dir in /tmp
And that's where it left last time.
Thanks,
pq
More information about the wayland-devel
mailing list