Re: Support XDG_RUNTIME_DIR being unset

2013-03-13 Thread Kristian Høgsberg
On Mon, Mar 11, 2013 at 4:39 PM, Pekka Paalanen wrote: > On Mon, 11 Mar 2013 18:43:07 +0100 > Emilio Pozuelo Monfort wrote: > >> On 03/11/2013 06:12 PM, Thiago Macieira wrote: >> > On segunda-feira, 11 de março de 2013 17.10.53, Emilio Pozuelo Monfort >> > wrote: >> >> The XDG base directory spe

Re: Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Thiago Macieira
On segunda-feira, 11 de março de 2013 18.43.07, Emilio Pozuelo Monfort wrote: > Debian doesn't by default (you can use systemd or upstart, but sysvinit is > the default init system). Probably others, as well as *BSDs (some people > are interested in porting wayland to them). That has nothing to d

Re: Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Pekka Paalanen
On Mon, 11 Mar 2013 18:43:07 +0100 Emilio Pozuelo Monfort wrote: > On 03/11/2013 06:12 PM, Thiago Macieira wrote: > > On segunda-feira, 11 de março de 2013 17.10.53, Emilio Pozuelo Monfort > > wrote: > >> The XDG base directory specification[1] says that "If $XDG_RUNTIME_DIR > >> is not set appl

Re: Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Pekka Paalanen
On Mon, 11 Mar 2013 10:12:08 -0700 Thiago Macieira wrote: > On segunda-feira, 11 de março de 2013 17.10.53, Emilio Pozuelo Monfort wrote: > > The XDG base directory specification[1] says that "If $XDG_RUNTIME_DIR > > is not set applications should fall back to a replacement directory > > with sim

Re: [PATCH weston 1/2] os_create_anonymous_file: support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Bill Spitzak
Why not have _get_runtime_dir return a static string pointer instead? It avoids a copy in the (common) case where XDG_RUNTIME_DIR is set, and only leaks memory on exit if XDG_RUNTIME_DIR is not set. ___ wayland-devel mailing list wayland-devel@lists.fr

Re: Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Emilio Pozuelo Monfort
On 03/11/2013 06:12 PM, Thiago Macieira wrote: On segunda-feira, 11 de março de 2013 17.10.53, Emilio Pozuelo Monfort wrote: The XDG base directory specification[1] says that "If $XDG_RUNTIME_DIR is not set applications should fall back to a replacement directory with similar capabilities and pr

Re: Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Thiago Macieira
On segunda-feira, 11 de março de 2013 17.10.53, Emilio Pozuelo Monfort wrote: > The XDG base directory specification[1] says that "If $XDG_RUNTIME_DIR > is not set applications should fall back to a replacement directory > with similar capabilities and print a warning message." > > Currently we abo

[PATCH weston 1/2] os_create_anonymous_file: support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Emilio Pozuelo Monfort
This adds a local copy of wl_get_runtime_dir() from wayland's src/wayland-util.c https://bugs.freedesktop.org/show_bug.cgi?id=62092 --- shared/os-compatibility.c | 39 +-- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/shared/os-compatibility.

Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Emilio Pozuelo Monfort
Hi, The XDG base directory specification[1] says that "If $XDG_RUNTIME_DIR is not set applications should fall back to a replacement directory with similar capabilities and print a warning message." Currently we abort if XDG_RUNTIME_DIR is not set. The following patches fall back to ~/.cache, as