Aha, right! Thanks.
This is set in the environment of the user's shell. Since my app fuse-workspace is a seperate service, and reacting on login/logout events by watching: a. the directory /run/systemd/users for systemd b.consolekit if available or a c. pam module special for this (pam_script)) on other systems howdo I get this environment var from the specific session to the fuse-workspace process?? Stef 2013/4/15 Jerome Leclanche <adys...@gmail.com>: > $XDG_RUNTIME_DIR is what you're looking for, but it's not guaranteed to be > set (it really should be, but...) > > J. Leclanche > > > On Mon, Apr 15, 2013 at 8:29 AM, Stef Bon <stef...@gmail.com> wrote: >> >> Hi, >> >> I'm working on a sollutution which creates network access, fuse-workspace. >> It's ssimular to gnome vfs, and also based upon a fuse filesystem. >> >> Supported is access to smb, and browsing the shares is possible through >> libsmbclient or cifs. In the latest case fuse-workspace mounts the >> remote shares using cifs on top of a browse tree. >> >> Now right now it mounts the network at a directory set in a >> configuration file, and it's a template: >> >> $HOME/Network >> >> I want to add the posibility to make it mount at >> >> /run/user/%UIDNR% (with systemd systems) >> >> /run/user/%USERNAME% (with upstart systems). >> >> Is there an environment var or any other easy method to determine this >> personal run directory?? >> >> Stef >> _______________________________________________ >> xdg mailing list >> xdg@lists.freedesktop.org >> http://lists.freedesktop.org/mailman/listinfo/xdg > > _______________________________________________ xdg mailing list xdg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xdg