Great, thanks.  In that case I'm fine with weston having no recommends
for libpam-xdg-support.

>From #weston:

--- Day changed Thu Sep 06 2012
15:52 < smallfoot-> weston should work without XDG_RUNTIME_DIR
15:52 < smallfoot-> as per the spec
15:52 < smallfoot-> 
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
15: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. "
16:13 < Darxus> smallfoot-: That's kind of funny.
16:20 < krh> smallfoot-: the funny thing is, there is no directory with similar 
capabilities
16:33 < smallfoot-> krh, oh, maybe ~/tmp/ or /tmp/ or /run/user/ ?
16:34 < smallfoot-> today mountall was updated in ubuntu from 2.38 to 2.40 
which have /run/user/ and the preliminary work for XDG_RUNTIME_SUPPORT, the 
other part is missing is a PAM module
16:36 < smallfoot-> 
https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/894391
16:38 < thiago> $HOME could be network-mounted
16:38 < thiago> it could also be SMB, which means no sockets
16:38 < thiago> /tmp is insecure, since other users can write to it
16:39 < thiago> and /run/user/$USER *is* XDG_RUNTIME_DIR. If your distro 
creates it, why doesn't it set the variable?
16:43 < smallfoot-> oh
16:43 < thiago> but we could create a secure dir in /tmp
17:27 < uartie> smallfoot: 
http://lists.freedesktop.org/archives/wayland-devel/2012-June/003935.html
17:28 < Darxus> Heh.
17:29 < Darxus> uartie: There were problems with people not realizing it was 
using ./ and as a result trying to run clients from a different directory than 
where they ran weston.
17:30 < Darxus> Creating a secure directory in /tmp seems good.
17:30 < uartie> yeh

The link in there is to a post by krh (creator of wayland) to the
mailing list on the same subject:  http://lists.freedesktop.org/archives
/wayland-devel/2012-June/003935.html

I don't really mind weston just failing if $XDG_RUNTIME_DIR is not set.
I think it cut down on confusion considerably.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1058211

Title:
  weston does not fallback gracefully if $XDG_RUNTIME_DIR is not set

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/weston/+bug/1058211/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to