Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-06 Thread systemdkiosk
Kind thanks, Zbyszek. Forgive init script habits. Systemd docs need execution flowcharts. Maybe a wiki for best practice XDG? Setting up users is basic sysadmin. Reviewing pam_env, is /etc/environment a decent place to set XDG vars? $USER works from there, yes? I guess $HOME/.pam_environment could

Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-02 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Nov 02, 2013 at 02:54:20AM +, systemdki...@yopmail.com wrote: > Zbigniew Jędrzejewski-Szmek wrote: > > > 'systemctl --user show-environment' will show what's set > > I get errors as normal user and root. > > $ systemctl --user show-environment > Failed to issue method call: Process

Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-02 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Nov 02, 2013 at 01:43:51AM +0200, Mantas Mikulėnas wrote: > On Sat, Nov 2, 2013 at 1:37 AM, Zbigniew Jędrzejewski-Szmek > wrote: > > On Fri, Nov 01, 2013 at 11:02:30PM +, systemdki...@yopmail.com wrote: > >> Might some expert address: > >> > >> https://bbs.archlinux.org/viewtopic.php?i

Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-01 Thread systemdkiosk
Zbigniew Jędrzejewski-Szmek wrote: > 'systemctl --user show-environment' will show what's set I get errors as normal user and root. $ systemctl --user show-environment Failed to issue method call: Process /bin/false exited with status 1 $ su - Password: # systemctl --user show-environment Fail

Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-01 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Nov 02, 2013 at 12:51:11AM +, systemdki...@yopmail.com wrote: > Zbigniew Jędrzejewski-Szmek wrote: > > > Are you sure that systemd is actually running > > with this variable set? > > Excellent question, and no, I'm not sure. > If you can tell me how to determine the > answer, please d

Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-01 Thread systemdkiosk
Zbigniew Jędrzejewski-Szmek wrote: > I guess that systemd should not create > the link if the destination doesn't exist. +1 Mantas Mikulėnas wrote: > I'm curious why the symlink is created at all... I know not why, but I do know that: If a symlink is made, the C code should use $XDG_CONFIG_HOME t

Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-01 Thread systemdkiosk
Zbigniew Jędrzejewski-Szmek wrote: > Are you sure that systemd is actually running > with this variable set? Excellent question, and no, I'm not sure. If you can tell me how to determine the answer, please do. What I can say is that 1) XDG_DATA_HOME is set in /etc/profile.d on Arch Linux, the f

Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-01 Thread Mantas Mikulėnas
On Sat, Nov 2, 2013 at 1:37 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Fri, Nov 01, 2013 at 11:02:30PM +, systemdki...@yopmail.com wrote: >> Might some expert address: >> >> https://bbs.archlinux.org/viewtopic.php?id=172220 >> >> It seems systemd pushes hard-wired paths irrespective of XDG va

Re: [systemd-devel] Help on Automatic Symlink XDG_DATA_HOME

2013-11-01 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Nov 01, 2013 at 11:02:30PM +, systemdki...@yopmail.com wrote: > Might some expert address: > > https://bbs.archlinux.org/viewtopic.php?id=172220 > > It seems systemd pushes hard-wired paths irrespective of XDG vars, a > possible bug. > > On this box XDG_DATA_HOME and XDG_CACHE_HOME p