Re: [systemd-devel] user environment variables

2014-12-05 Thread Mantas Mikulėnas
On Fri, Dec 5, 2014 at 5:20 PM, Daniele Nicolodi wrote: > On 05/12/14 16:13, arnaud gaboury wrote: > > Now: > > -- > > $ echo 'lolo=4 lala=5' | tee test > > lolo=4 lala=5 > > $ systemctl --user set-environment 'cat test' > > Failed to set environment: Invalid envir

Re: [systemd-devel] user environment variables

2014-12-05 Thread arnaud gaboury
> > $ systemctl --user set-environment `cat test` > Damned. Thank you ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] user environment variables

2014-12-05 Thread Daniele Nicolodi
On 05/12/14 16:13, arnaud gaboury wrote: > Now: > -- > $ echo 'lolo=4 lala=5' | tee test > lolo=4 lala=5 > $ systemctl --user set-environment 'cat test' > Failed to set environment: Invalid environment assignments > --- > > No idea wh

Re: [systemd-devel] user environment variables

2014-12-05 Thread arnaud gaboury
> > systemctl set-environment `cat FILE` should work, no? > > Lennart > I am messing with it. $ systemctl --user set-environment toto=3 tata=4 $ systemctl --user show-environment .. tata=4 toto=3 - Now: -- $

Re: [systemd-devel] user environment variables

2014-12-05 Thread Lennart Poettering
On Fri, 05.12.14 14:13, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > Dear all, > > For the user services started by systemctl --user, I sometimes need to > tell systemd some environment variables values. > > For this purpose, I use drop-in configuration files (MyService.conf) > in /etc/sys

[systemd-devel] user environment variables

2014-12-05 Thread arnaud gaboury
Dear all, For the user services started by systemctl --user, I sometimes need to tell systemd some environment variables values. For this purpose, I use drop-in configuration files (MyService.conf) in /etc/systemd/system/user@.service.d I am wondering if there is another way to pass the variable

Re: [systemd-devel] user environment variables

2014-11-15 Thread Andrei Borzenkov
В Mon, 10 Nov 2014 20:55:12 +0100 arnaud gaboury пишет: > >> As for the variable, two more wishes (not a big deal yet): > >> - in units, why not add a specifier reflecting $XDG_CONFIG_HOME > > > > Hmm, when we start with that, then I figure people want the other XDG > > dirs as well, soon... > >

Re: [systemd-devel] user environment variables

2014-11-10 Thread arnaud gaboury
>> As for the variable, two more wishes (not a big deal yet): >> - in units, why not add a specifier reflecting $XDG_CONFIG_HOME > > Hmm, when we start with that, then I figure people want the other XDG > dirs as well, soon... > > Anyway, what's the usecase for this? Just laziness when writing ser

Re: [systemd-devel] user environment variables

2014-11-10 Thread Lennart Poettering
On Fri, 07.11.14 20:40, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > > > > We could probably at least open up DefaultEnvironment= to specifier > > expansion, so that %t would work the same way as in unit files. I > > added a TODO list item for this now. > > > > Thank you so much < This

Re: [systemd-devel] user environment variables

2014-11-07 Thread arnaud gaboury
> > We could probably at least open up DefaultEnvironment= to specifier > expansion, so that %t would work the same way as in unit files. I > added a TODO list item for this now. > Thank you so much < This refers to the recent flame about systemd. As a newbie, I can testify the dev team is doi

Re: [systemd-devel] user environment variables

2014-11-06 Thread Lennart Poettering
On Fri, 31.10.14 17:16, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: > For systemd be aware of certain environment variables, I usually use a > drop-in config in /etc/systemd/system/user@service.d. This way, I can > see the varibale when running > $ systemctl --user show-environment > > Now I

[systemd-devel] user environment variables

2014-10-31 Thread arnaud gaboury
For systemd be aware of certain environment variables, I usually use a drop-in config in /etc/systemd/system/user@service.d. This way, I can see the varibale when running $ systemctl --user show-environment Now I am wondering why not using the /etc/systemd/user.conf for these variables. I tried th