Devuan bug report logs - #745
dbus-x11: Several processes in Plasma session including krunner have / as current working directory

version graph

Package: dbus-x11; Maintainer for dbus-x11 is Devuan Maintainers <devuan-dev@lists.dyne.org>; Source for dbus-x11 is src:dbus.

Reported by: Martin Steigerwald <martin@lichtvoll.de>

Date: Sun, 5 Mar 2023 09:00:01 UTC

Severity: normal

Tags: patch, upstream

Found in version dbus/1.14.6-1devuan1

Forwarded to https://gitlab.freedesktop.org/dbus/dbus/-/issues/214

Full log


Message #24 received at 745@bugs.devuan.org (full text, mbox, reply):

Received: (at 745) by bugs.devuan.org; 6 Mar 2023 15:25:33 +0000
Return-Path: <smcv@debian.org>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Mon, 06 Mar 2023 15:25:33 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id OuuEHusFBmTWOQAAmSBk0A
	(envelope-from <smcv@debian.org>)
	for <bugs@devuan.org>; Mon, 06 Mar 2023 15:25:31 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 704BE66E; Mon,  6 Mar 2023 15:25:31 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED,SPF_NONE,UNPARSEABLE_RELAY
	autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: None (mailfrom) identity=mailfrom; client-ip=2001:41b8:202:deb::311:108; helo=stravinsky.debian.org; envelope-from=smcv@debian.org; receiver=<UNKNOWN> 
Received: from stravinsky.debian.org (stravinsky.debian.org [IPv6:2001:41b8:202:deb::311:108])
	by email.devuan.org (Postfix) with ESMTPS id C39FD393
	for <745@bugs.devuan.org>; Mon,  6 Mar 2023 15:25:26 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:In-Reply-To:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:Reply-To:
	Content-Transfer-Encoding:Content-ID:Content-Description;
	bh=2Svg6eajomoNYzAvdCMIG2JTpgQ8drChwZAF3xBrvu8=; b=CLjyeeA7J16gmdppuZYYTV284A
	Ol6UnI0JJOiBW31zu5gf9T+TQzSg5LZHFgHFWWX6qsatvS8gb0ZewE4lNbpygr+ofdat/mQEPbKXv
	37oGpLkcbMJmzCjx2Q+hDmy59jv2p8ihktIS+zWOqW6abg3cOjgQcxpT+SxkdbWbqtoRXGfag9nhG
	ksV2ky9HvTIuDPkLmdq8T+uS3U+Y2sWlqAicEKuslc/AF8lVnBoef3tV3zDc+tI0aC875O2b6eH5Z
	mnSjfkAmYBsa4sOgX+tx6DCggC9Ur/5+ViAOY+/ih96VxHJ5rodFheGZVmrE2EyjfqhvkI3Eal87b
	Lx4GloPw==;
Received: from authenticated user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <smcv@debian.org>)
	id 1pZCiH-001uhu-3e; Mon, 06 Mar 2023 15:25:22 +0000
Date: Mon, 6 Mar 2023 15:25:18 +0000
From: Simon McVittie <smcv@debian.org>
To: Mark Hindley <mark@hindley.org.uk>
Cc: Martin Steigerwald <martin@lichtvoll.de>, 745@bugs.devuan.org,
	1032368@bugs.debian.org
Subject: Re: bug#745: dbus-x11: Several processes in Plasma session including
 krunner have / as current working directory
Message-ID: <ZAYF3q/CFwDkDBYz@momentum.pseudorandom.co.uk>
References: <3241557.44csPzL39Z@lichtvoll.de>
 <ZAXT6NiAP3yVFLx3@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <ZAXT6NiAP3yVFLx3@hindley.org.uk>
X-Debian-User: smcv
Control: forwarded -1 https://gitlab.freedesktop.org/dbus/dbus/-/issues/214

On Mon, 06 Mar 2023 at 11:52:08 +0000, Mark Hindley wrote:
> Simon, might the implications of that be reviewed again upstream? I
> found an upstream issue with patch to implement such behaviour that has not been
> merged <https://gitlab.freedesktop.org/dbus/dbus/-/issues/214>.

I had completely forgotten about that issue report. At least I'm
consistent: 4 years ago, I also said something along the lines of "maybe,
but I'm concerned that this is going to break someone's workflow". If
there is consensus even among the users of highly change-averse
distributions that $HOME is a better working directory than /, then maybe
this can/should change in the dbus 1.15.x and Debian-13-as-testing cycle.

As you said, during the Debian 12 freeze is not the time to change this.
dbus 1.16.0 would be the earliest stable release of dbus that is likely
to have this behaviour change upstream, although obviously Devuan is
already patching the dbus package and is free to backport whatever
changes they are willing to take responsibility for.

What I absolutely don't want is to make the change, and then 2 years
later get hate mail from someone telling me that I've broken their
system by making dbus-launch prevent /home from being unmounted and
"why can't you just" add an option to use daemon(3).

Because the recommended and most-common way to run the session bus in
2023 is via the dbus.service managed by `systemd --user` (that's the
dbus-user-session package in Debian), it is primarily users of more
traditional system configurations (sysv-rc or similar, X11, dbus-x11,
dbus-launch) that will be affected by this. I do not have enough time
available for dbus to carry out testing on arbitrary OS configurations,
and I am not able to take responsibility for researching whether this
will break anyone's use-case. It's up to the people who maintain those
more traditional system configurations to tell me whether dbus/dbus#214
is what you want or not.

Because dbus-launch is already poorly-understood spaghetti code, I
specifically don't want this to be a configuration option: it should
either always use $HOME as in David King's proposed patch, or always use
"/" as it does in 1.14.x. Having two rarely-tested code paths is worse
than having one.

    smcv

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat Nov 23 17:54:53 2024;