Re: [systemd-devel] [RFC] logind: introduce session positions

2013-12-02 Thread Tom Gundersen
On Sun, Dec 1, 2013 at 12:43 PM, David Herrmann dh.herrm...@gmail.com wrote: logind has no concept of session ordering. Sessions have a unique name, some attributes about the capabilities and that's already it. There is currently no stable+total order on sessions. If we use the logind API to

Re: [systemd-devel] [RFC] logind: introduce session positions

2013-12-02 Thread David Herrmann
Hi On Sun, Dec 1, 2013 at 6:02 PM, Shawn Landden sh...@churchofgit.com wrote: On Sun, Dec 1, 2013 at 3:43 AM, David Herrmann dh.herrm...@gmail.com wrote: logind has no concept of session ordering. Sessions have a unique name, some attributes about the capabilities and that's already it. There

Re: [systemd-devel] [RFC] logind: introduce session positions

2013-12-02 Thread David Herrmann
Hi On Mon, Dec 2, 2013 at 10:57 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and David Herrmann at 01/12/13 11:43 did gyre and gimble: During session_load() or if two sessions have the same VTnr, we may end up with two sessions with the same position (this shouldn't happen, but

[systemd-devel] [PATCH] Display synthetic message serial number in a more readable format than (uint32_t) -1

2013-12-02 Thread Lukasz Skalski
Serial=4294967295 field in message dump generated by bus_message_dump() function for synthetic messages isn't good readable. --- src/libsystemd-bus/bus-dump.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/libsystemd-bus/bus-dump.c

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-02 Thread David Herrmann
Hi The binary file contains all glyphs in a compressed 1-bit-per-pixel format for all 8x16 and 16x16 glyphs. It is linked directly into libsystemd-gfx via the *.bin makefile target. Binary size is 2.1MB, but thanks to paging, the kernel only loads required pages into memory. A ASCII-only

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lennart Poettering
On Fri, 29.11.13 14:45, Colin Walters (walt...@verbum.org) wrote: On Fri, 2013-11-29 at 02:39 +0100, Lennart Poettering wrote: On Thu, 28.11.13 00:54, Zbigniew Jędrzejewski-Szmek (zbys...@kemper.freedesktop.org) wrote: Instead we should add some code to macro.h which turns off the the

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lennart Poettering
On Sun, 01.12.13 01:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Fri, Nov 29, 2013 at 02:45:21PM -0500, Colin Walters wrote: On Fri, 2013-11-29 at 02:39 +0100, Lennart Poettering wrote: On Thu, 28.11.13 00:54, Zbigniew Jędrzejewski-Szmek

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lennart Poettering
On Sun, 01.12.13 10:13, Colin Walters (walt...@verbum.org) wrote: On Sun, 2013-12-01 at 01:26 +0100, Zbigniew Jędrzejewski-Szmek wrote: Actually I don't think we need to totally forbid declarations after statements. I don't have an opinion myself on making

Re: [systemd-devel] build broken on clang

2013-12-02 Thread Lennart Poettering
On Sun, 01.12.13 00:38, Thomas H.P. Andersen (pho...@gmail.com) wrote: Hi, Since 777d7a6123cbb192a8ff9e4ac5c05b1da84b4217 the build is broken on clang: src/libsystemd-bus/bus-control.c:686:41: error: fields must have a constant size: 'variable length array in structure' extension will

Re: [systemd-devel] [PATCH 1/2] nspawn: --populate to run static binaries on empty target directory

2013-12-02 Thread Lennart Poettering
On Sat, 30.11.13 10:20, Shawn Landden (sh...@churchofgit.com) wrote: nspawn has been called chroot on steroids. Continue that tradition by supporting target directories that are not root directories. This patch handles the simple case: a static binary. Hmm, I am not sure how I feel about

Re: [systemd-devel] [PATCH 1/4] nspawn: shorten conditional path

2013-12-02 Thread Lennart Poettering
On Sun, 01.12.13 14:50, Shawn Landden (sh...@churchofgit.com) wrote: --- src/nspawn/nspawn.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index dd7337b..0151cf3 100644 --- a/src/nspawn/nspawn.c +++

Re: [systemd-devel] [PATCH] Display synthetic message serial number in a more readable format than (uint32_t) -1

2013-12-02 Thread Lennart Poettering
On Mon, 02.12.13 16:31, Lukasz Skalski (l.skal...@partner.samsung.com) wrote: Serial=4294967295 field in message dump generated by bus_message_dump() function for synthetic messages isn't good readable. Thanks! Applied! --- src/libsystemd-bus/bus-dump.c | 12 +--- 1 file changed,

Re: [systemd-devel] [RFC] xyzctl-common

2013-12-02 Thread Lennart Poettering
On Sat, 16.11.13 19:41, Peeters Simon (peeters.si...@gmail.com) wrote: hello all, During the sd_bus porting I noted that the *ctl tools (and systemd-analyze) contain a lot of common boilerplate code. So the basic idea is to split this boilerplate out into xyzctl-common.[ch] so that f.ex

Re: [systemd-devel] [PATCH 1/2] nspawn: --populate to run static binaries on empty target directory

2013-12-02 Thread Shawn Landden
On Mon, Dec 2, 2013 at 8:27 AM, Lennart Poettering lenn...@poettering.net wrote: On Sat, 30.11.13 10:20, Shawn Landden (sh...@churchofgit.com) wrote: nspawn has been called chroot on steroids. Continue that tradition by supporting target directories that are not root directories. This

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 02, 2013 at 04:58:40PM +0100, Lennart Poettering wrote: On Sun, 01.12.13 01:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Fri, Nov 29, 2013 at 02:45:21PM -0500, Colin Walters wrote: On Fri, 2013-11-29 at 02:39 +0100, Lennart Poettering wrote: On Thu,

Re: [systemd-devel] The whole su/pkexec session debate

2013-12-02 Thread Colin Walters
On Mon, 2013-12-02 at 14:37 +0100, David Herrmann wrote: But then gnome-session should simply call ReleaseSession() on the bus itself.. I'd rather have some sort of API where a particular process is the session leader, and its exit implies closing. Something like a pid file in

Re: [systemd-devel] [systemd-commits] 4 commits - catalog/systemd-fr.catalog catalog/systemd-ru.catalog configure.ac Makefile.am po/.gitignore po/LINGUAS po/ru.po

2013-12-02 Thread Lennart Poettering
On Mon, 02.12.13 19:25, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: I must say I really dislike mixing declarations and code. And I also know that by accident I did this in many cases myself and was thankful for the compiler to tell me about this. I never understood this. There

Re: [systemd-devel] [PATCH 2/7] Give the user permissions to their session's cgroup

2013-12-02 Thread Hristo Venev
See systemd src/core/execute.c:1299-1312, especially lines 1300 and 1307. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Goffredo Baroncelli
Hi all, currently systemd contains a sysctl default setting in a file called 50-default.conf The aim of this patch is to split the content of the sysctl setting in more files to allow a more selective override. My need is to enable all the sysrq key. Instead systemd defaults is to

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 02, 2013 at 09:15:37PM +0100, Goffredo Baroncelli wrote: Hi all, currently systemd contains a sysctl default setting in a file called 50-default.conf The aim of this patch is to split the content of the sysctl setting in more files to allow a more selective override. Hi

[systemd-devel] [HACK/RFC/PATCH] systemd-su: su on steroids

2013-12-02 Thread David Herrmann
So people continue asking how to spawn a process in a new session from the command-line. Turns out, it's not as easy as you might think. I stopped at some point trying, but something like this should work: systemd-run --description=Test -- /bin/sh -- XDG_SEAT=seat0 XDG_VTNR=5 su - david --

[systemd-devel] Not authorized to perform operation

2013-12-02 Thread Floris
Dear systemd maintainers, recently I upgraded Debian Testing to Gnome 3.8, but unfortunately gdm3.8 is build without systemd support, so I installed gdm3.10 from experimental with his dependencies. (So basically I run Gnome 3.10) gnome-shell --version GNOME Shell 3.10.1 When I try to mount a

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Goffredo Baroncelli
On 2013-12-02 21:32, Kay Sievers wrote: On Mon, Dec 2, 2013 at 9:15 PM, Goffredo Baroncelli kreij...@libero.it wrote: currently systemd contains a sysctl default setting in a file called 50-default.conf The aim of this patch is to split the content of the sysctl setting in more

[systemd-devel] [PATCH] core: fix Unit.SetProperties argument parsing

2013-12-02 Thread David Herrmann
SetProperties has signature ba(sv), but the bus_unit_set_properties() helper already does a enter_container('a', sv) so we have to skip it in bus_unit_method_set_properties(). --- Heyho I just stumbled over this. Don't have any test-case and it's too late here to be 100% sure about bus argument

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Dec 02, 2013 at 10:27:45PM +0100, Goffredo Baroncelli wrote: On 2013-12-02 21:38, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Dec 02, 2013 at 09:15:37PM +0100, Goffredo Baroncelli wrote: Hi all, currently systemd contains a sysctl default setting in a file called

Re: [systemd-devel] Not authorized to perform operation

2013-12-02 Thread Michael Biebl
Also install policykit-1 from experimental, which is built with logind support. 2013/12/2 Floris jkflo...@dds.nl: Dear systemd maintainers, recently I upgraded Debian Testing to Gnome 3.8, but unfortunately gdm3.8 is build without systemd support, so I installed gdm3.10 from experimental

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Goffredo Baroncelli
Hi Zbyszek On 2013-12-02 23:27, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Dec 02, 2013 at 10:27:45PM +0100, Goffredo Baroncelli wrote: [...] Yes am doing so. But IIRC the process order of the sysctl file was inverted near systemd 207... Because Debian uses 204, when it switches to something

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Kay Sievers
On Mon, Dec 2, 2013 at 11:52 PM, Goffredo Baroncelli kreij...@libero.it wrote: I have ne question: what happens if a sysctl setting is in more than one file ? systemd-sysctl is smart enough to write the last value or perform several writes ? One write only, it logs at info level about

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Mantas Mikulėnas
On Dec 3, 2013 1:51 AM, Tom Gundersen t...@jklm.no wrote: On Tue, Dec 3, 2013 at 12:04 AM, Kay Sievers k...@vrfy.org wrote: On Mon, Dec 2, 2013 at 11:52 PM, Goffredo Baroncelli kreij...@libero.it wrote: I have ne question: what happens if a sysctl setting is in more than one file ?

Re: [systemd-devel] [PATCH] Split sysctl 50-default.conf setting file

2013-12-02 Thread Kay Sievers
On Tue, Dec 3, 2013 at 12:55 AM, Mantas Mikulėnas graw...@gmail.com wrote: On Dec 3, 2013 1:51 AM, Tom Gundersen t...@jklm.no wrote: On Tue, Dec 3, 2013 at 12:04 AM, Kay Sievers k...@vrfy.org wrote: On Mon, Dec 2, 2013 at 11:52 PM, Goffredo Baroncelli kreij...@libero.it wrote: I have