From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Pleger Subject: Running an application on a new VT Date: Mon, 16 Sep 2019 13:53:47 +0200 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-kernel@vger.kernel.org, linux-admin@vger.kernel.org Hello, I am using the program openvt to run another program. openvt is used to open a new virtual terminal and then run the given program on the new VT. In my case, I want to start a KDE Plasma session on the new VT. Unfortunately, this did not work as expected: After entering the command 'openvt -s -w -- dbus-run-session startplasmacompositor', the KDE session did not start on the new VT, but on tty1, from where I had entered the openvt command. Then, I tried with 'openvt -s -w -- /bin/bash', but though this ran bash on a new virtual terminal, entering 'dbus-run-session startplasmacompositor' on the new VT caused a switch back to tty1 and again, the desktop session started there. Does anybody know why not the new VT is used for the desktop session and how that behaviour can be changed? Regards Christoph