control: found -1 3.0.4+dfsg1-1~bpo10+1 On Wed, Nov 25, 2020 at 02:57:45PM +1100, Dmitry Smirnov wrote: > On Wednesday, 25 November 2020 7:47:33 AM AEDT Sergio Gelato wrote: > > Package: xpra > > Version: 2.4.3+dfsg1-1 > > Thanks for report. However this version is obsolete and the problem is most > certainly fixed in newer release. I recommend to upgrade to version from > "buster-backports" as I hope it may have the fix already...
As I mentioned parenthetically in the original report, the same flawed detection code is on upstream svn trunk. I've also checked that it is still called from xpra/scripts/main.py in a relevant way. As far as I can tell it affects all versions so far. I have explicitly checked 3.0.4: $ python3 Python 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from xpra.os_util import is_systemd_pid1 >>> is_systemd_pid1() False >>> $ head -1 /proc/1/status Name: systemd $ xpra --version xpra v3.0.4-r24778 I now also have a suggested fix: read /proc/1/status and look for a line matching ^Name:[[:space:]]+systemd$ (or whatever the proper regexp syntax is) instead of /proc/1/cmdline which may read /sbin/init even on systemd.