Bug 508216 - With Flatpak packaging, cwd isn't remembered when opening a new tab
Summary: With Flatpak packaging, cwd isn't remembered when opening a new tab
Status: VERIFIED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (other bugs)
Version First Reported In: master
Platform: Flatpak Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-14 01:19 UTC by Nate Graham
Modified: 2025-09-09 14:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 25.12.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-08-14 01:19:17 UTC
STEPS TO REPRODUCE
1. Install Konsole from nightly Flatpak repo (https://cdn.kde.org/flatpak/konsole-nightly/org.kde.konsole.flatpakref)
2. Launch it
3. `cd` to another location
4. Open a new tab

OBSERVED RESULT
The new tab opens at ~, not the same location the existing tab was showing

EXPECTED RESULT
The new tab opens in the same location as the existing tab
Comment 1 Bug Janitor Service 2025-08-31 19:07:34 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/1127
Comment 2 Waqar Ahmed 2025-09-09 11:39:28 UTC
Git commit 62b6f2285ededa6dd50b1a1d8894e38963b1f06d by Waqar Ahmed.
Committed on 09/09/2025 at 11:21.
Pushed by waqar into branch 'master'.

Fix process info not available in flatpak

Since we are in a sandbox, tcgetpgrp doesn't work. To work around
this limitation, get process info using ps
Related: bug 507763

M  +89   -2    src/ProcessInfo.cpp
M  +2    -1    src/ProcessInfo.h
M  +31   -0    src/Pty.cpp
M  +27   -3    src/session/Session.cpp

https://invent.kde.org/utilities/konsole/-/commit/62b6f2285ededa6dd50b1a1d8894e38963b1f06d
Comment 3 Nate Graham 2025-09-09 14:10:51 UTC
Thanks, I can confirm it's fixed now!