Skip to content

STDIN is corrupted when pwsh's Start-Transcript is active, in flathub/org.kde.konsole. #73

@RokeJulianLockhart

Description

@RokeJulianLockhart

As PowerShell/PowerShell/issues/16717 first reported, flatpak-spawn --host $(command -v env) $(command -v pwsh) -NoExit -Command 'Start-Transcript -Append -NoClobber -IncludeInvocationHeader' causes pwsh's output, of commands entered into its prompt, to corrupt. An example, wherein I merely typed "exit", is:

RokeJulianLockhart@Beedell:~$ flatpak-spawn --host $(command -v env) $(command -v pwsh) -NoExit -Command 'Start-Transcript -Append -NoClobber -IncludeInvocationHeader'
Transcript started, output file is /home/RokeJulianLockhart/PowerShell_transcript.Beedell.oRPCltZK.20260215214907.txt
PS /home/RokeJulianLockhart> exitexitexitexit

To demonstrate this:

@.Date.20260215T215214+0000.Type.Video.Origin.bash.Konsole.webm

I have confirmed that this does not reproduce with flatpak run org.kde.konsole -e "$(command -v pwsh) -NoExit -Command \"Start-Transcript -Append -NoClobber -IncludeInvocationHeader\"":

2026-02-15.21-15-56.mp4

I've been unable to exclude its CLI interface:

Image

...due to flathub/org.kde.konsole/issues/55, but I've no reason to believe that it would differ. Consequently, this appears to be specific to flatpak-spawn, until I am able to remediate nix-community/nix-on-droid/issues/499, to confirm PowerShell/PowerShell/issues/16746#issuecomment-1076995838. Because rpm -q --qf '%{URL}\n' "$(rpm -qf /usr/bin/flatpak-spawn)" returns the URI to this repository, I've reported this here.

Tangential

If I enter sudo dnf5 install kate (I was attempting to reproduce PowerShell/PowerShell/issues/16717, I observe a worse version of PowerShell/PowerShell/issues/26834#issuecomment-3905106587, in that $? = $False:

RokeJulianLockhart@Beedell:~$ flatpak-spawn --host $(command -v env) $(command -v pwsh) -NoExit -Command 'Start-Transcript -Append -NoClobber -IncludeInvocationHeader'
Transcript started, output file is /home/RokeJulianLockhart/PowerShell_transcript.Beedell.9nblh8Lj.20260215215723.txt
PS /home/RokeJulianLockhart> exit    start-Transcript -Append -NoClobber -IncludeInvocationHeadersudo dnf5 install kate                                      sudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install katesudo dnf5 install kate
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required

My Environment

RokeJulianLockhart@Beedell:~$ rpm -qi $(rpm -qf $(command -v flatpak-spawn))
Name        : flatpak-spawn
Version     : 1.0.6
Release     : 3.fc43
Architecture: x86_64
Install Date: Sun 15 Feb 2026 20:56:48 GMT
Size        : 71515
Signature   :
              RSA/SHA256, Thu 24 Jul 2025 05:10:19 BST, Key ID 829b606631645531
Source RPM  : flatpak-xdg-utils-1.0.6-3.fc43.src.rpm
Build Date  : Thu 24 Jul 2025 02:45:09 BST
Build Host  : buildvm-x86-26.rdu3.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://github.com/flatpak/flatpak-xdg-utils
Bug URL     : https://bugz.fedoraproject.org/flatpak-xdg-utils

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions