Where to save stuff (in snap-agnostic way)

Michael Hall mhall119 at ubuntu.com
Fri Feb 3 21:41:05 UTC 2017


Be sure to use XDG_RUNTIME_DIR and not '/var/run' specifically, as
XDG_RUNTIME_DIR is /run/user/<userid>/snap.<snapname>/ in a snap's
runtime. You may also need to create that directory before using it.

Michael Hall
mhall119 at ubuntu.com

On 02/03/2017 04:19 PM, Christian Dywan wrote:
> Hey Luca,
> 
> I'll suggest XDG_RUNTIME_DIR i.e. /var/run
> 
> Regards,
> Cris
> 
> Am 3. Februar 2017 21:04:19 MEZ schrieb Luca Dionisi
> <luca.dionisi at gmail.com>:
> 
>     What is the best place to write (and read) a temporary FIFO file from
>     a confined snap application?
>     This is for simple IPC between 2 processes of the same snap.
>     Before attempting to snap the application I was using a fixed filename
>     in /tmp. Admittedly poor solution.
>     The solution should be usable also with another packaging system.
> 
>     --Luca
> 
>     P.S. the problem with Vala library has been solved and I was able to
>     make the snap work in devmode. Now I am trying to move from devmode to
>     strict.
> 
> 
> -- 
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> gesendet.
> 
> 




More information about the Snapcraft mailing list