Devuan bug report logs - #594
plasma-workspace: KRunner starts programs in the filesystem root

version graph

Package: plasma-workspace; Maintainer for plasma-workspace is (unknown); Source for plasma-workspace is src:plasma-workspace.

Reported by: Hannah Rittich <void@rittich.net>

Date: Thu, 22 Jul 2021 17:03:01 UTC

Severity: normal

Tags: debian

Found in version 4:5.20.5-6

Forwarded to https://bugs.debian.org/991439

Full log


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

Received: (at 594) by bugs.devuan.org; 23 Jul 2021 14:40:04 +0000
Return-Path: <void@rittich.net>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Fri, 23 Jul 2021 14:40:04 +0000 (UTC)
Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 4A3B8F60D3A
	for <594@bugs.devuan.org>; Fri, 23 Jul 2021 16:39:32 +0200 (CEST)
Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4GWX5Z73mNzQkFY;
	Fri, 23 Jul 2021 16:39:30 +0200 (CEST)
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
	by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030)
	with ESMTP id v62dou2v9AaY; Fri, 23 Jul 2021 16:39:27 +0200 (CEST)
Subject: Re: bug#594: plasma-workspace: KRunner starts programs in the
 filesystem root
To: Mark Hindley <mark@hindley.org.uk>
Cc: 594@bugs.devuan.org
References: <162697230440.3343.11581024129851610142.reportbug@devuan-vm>
 <YPm8orSR/vyWXbGx@hindley.org.uk>
 <a8a8c369-9a61-8531-6e62-10ba0aeb273a@rittich.net>
 <YPrJDmfSN6te72EZ@hindley.org.uk>
From: Hannah Rittich <void@rittich.net>
Message-ID: <74960011-a234-f51e-3492-f1158371a748@rittich.net>
Date: Fri, 23 Jul 2021 16:39:26 +0200
MIME-Version: 1.0
In-Reply-To: <YPrJDmfSN6te72EZ@hindley.org.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: de-DE
Content-Transfer-Encoding: 7bit
X-Rspamd-Queue-Id: E889717FC
X-Rspamd-UID: a9442b
X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
Hi,

> If even then it is still not present on the clean bullseye
> sysvinit install, I suspect a configuration change on the Devuan
> system. AFAIK all the relevant packages are the same between
> chimaera and bullseye.

it seems that I cannot change the init system on Bullseye to reproduce 
the error, because if I try to install sysvinit-core, apt wants to 
remove the plasma-workspace package.

Is there something I can try, to reproduce the problem on Debian? Shall 
I still report to Debian's BTS while stating it can only be reproduced 
on Devuan?

I have done some further investigation. If you start krunner on 
Bullseye, the krunner process is owned by "/lib/systemd/systemd --user" 
and the working directory is my home directory. On Chimaera, krunner is 
owned by init and the working directory is the file-system root.

As a workaround I have created a wrapper script, which launches krunner 
in the user's home directory. Executing the following fixes the problem.

    mv /usr/bin/krunner /usr/bin/krunner.orig
    cat > /usr/bin/krunner << EOS
    #!/bin/sh
    cd "\$HOME"
    exec /usr/bin/krunner.orig "$@"
    EOS
    chmod a+x /usr/bin/krunner

(Note, to reproduce the error, I have also installed a fresh version of 
Chimaera into a VM.)

Hannah

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: Mon Nov 25 17:46:19 2024;