On Tue, Dec 11, 2012 at 4:05 AM, Gustavo Sverzut Barbieri
<barbi...@profusion.mobi> wrote:
> Wouldn't be nice to expose this in eina as this is a common problem?
> We use mktemps() when possible, or use some other technique like ou
> did if not?

After having gone over our use of mkstemp and it's broken usage, it
make sense to have a portable safe way to create a temporary file.

> Also would be nice to use $XDG_RUNTIME_DIR if possible. This envvar is
> set with an user-scope, then it's safe by nature to store stuff in
> there. Currently just systemd implements, but it should be trivial to
> add this to other systems.
> http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
>    What systemd does is just mkdir /run/user/$UID as 0700 in a tmpfs,
> then export XDG_RUNTIME_DIR=/run/user/$UID. People could easily do an
> work around for /home/$USER/.tmp or use systemd's approach.

Interesting idea, I like this XDG_RUNTIME_DIR.
--
Cedric BAIL

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to