Bug#854102: systemd-logind fails to update session's Display property after `startx` from VT

2017-02-04 Thread Daniel Kahn Gillmor
On Sat 2017-02-04 08:11:34 -0500, Felipe Sateler wrote:
> From a quick read at the source, the display property appears to only
> be settable at session creation time.

That's the conclusion i came to also from my digging around in there.

> I don't know if this is deliberate or not.

Any suggestions about next steps for addressing the situation?

--dkg


signature.asc
Description: PGP signature
___
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Bug#854102: systemd-logind fails to update session's Display property after `startx` from VT

2017-02-04 Thread Felipe Sateler
On 4 February 2017 at 02:52, Daniel Kahn Gillmor  wrote:
> Package: systemd
> Version: 232-14
> Severity: normal
>
> i start my login on this system on a text-mode console (a "VT") and
> then do "exec startx" to transition to a graphical X11 session.
>
> From within this graphical session, if i query logind about the
> Display for the login session, it is the empty string, instead of what
> it should be (":0").

>From a quick read at the source, the display property appears to only
be settable at session creation time. I don't know if this is
deliberate or not.

-- 

Saludos,
Felipe Sateler

___
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers


Bug#854102: systemd-logind fails to update session's Display property after `startx` from VT

2017-02-03 Thread Daniel Kahn Gillmor
Package: systemd
Version: 232-14
Severity: normal

i start my login on this system on a text-mode console (a "VT") and
then do "exec startx" to transition to a graphical X11 session.

>From within this graphical session, if i query logind about the
Display for the login session, it is the empty string, instead of what
it should be (":0").

logind knows that i'm on "/dev/tty1", according to its TTY property,
which is correct, but it should know the Display as well, since startx
just reuses the same VT for the graphical console.

here's me debugging it:

dkg@test:~$ SESSION_OBJ_PATH=$(busctl call org.freedesktop.login1 
/org/freedesktop/login1 org.freedesktop.login1.Manager GetSessionByPID u $$ | 
awk '-F"' '/o/{ print $2 }')
dkg@test:~$ busctl get-property  org.freedesktop.login1 "$SESSION_OBJ_PATH" 
org.freedesktop.login1.Session Display
s ""
$ busctl get-property  org.freedesktop.login1 "$SESSION_OBJ_PATH" 
org.freedesktop.login1.Session TTY
s "/dev/tty1"
dkg@test:~$ 

logind should be aware when startx triggers the change and update its
conception of the use of the tty accordingly, though i'm not sure how
that would be done.

I'm looking into this because it would be nice to have anything that's
associated with the user session be able to know what the Display is
for that particular session (i care about this for gpg-agent and
pinentry, as discussed on #debian-systemd, but i'm sure there are
other use cases as well).

Thanks for maintaining systemd in debian!

 --dkg

-- Package-specific info:

-- System Information:
Debian Release: 9.0
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 
'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  adduser 3.115
ii  libacl1 2.2.52-3
ii  libapparmor12.11.0-2
ii  libaudit1   1:2.6.7-1
ii  libblkid1   2.29.1-1
ii  libc6   2.24-9
ii  libcap2 1:2.25-1
ii  libcryptsetup4  2:1.7.3-3
ii  libgcrypt20 1.7.5-3
ii  libgpg-error0   1.26-2
ii  libidn111.33-1
ii  libip4tc0   1.6.0+snapshot20161117-5
ii  libkmod223-2
ii  liblz4-10.0~r131-2
ii  liblzma55.2.2-1.2
ii  libmount1   2.29.1-1
ii  libpam0g1.1.8-3.5
ii  libseccomp2 2.3.1-2.1
ii  libselinux1 2.6-3
ii  libsystemd0 232-14
ii  mount   2.29.1-1
ii  util-linux  2.29.1-1

Versions of packages systemd recommends:
ii  dbus1.10.14-1
ii  libpam-systemd  232-14

Versions of packages systemd suggests:
ii  policykit-10.105-17
ii  systemd-container  232-14
pn  systemd-ui 

Versions of packages systemd is related to:
ii  dracut   044+189-2
pn  initramfs-tools  
ii  udev 232-14

-- no debconf information

___
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers