https://bugs.kde.org/show_bug.cgi?id=528661

            Bug ID: 528661
           Summary: Flatpak: new window opens in first instance's working
                    directory instead of requested one
    Classification: Applications
           Product: kwi
      Version First dev
       Reported In:
          Platform: Flatpak
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 198328
  --> https://bugs.kde.org/attachment.cgi?id=198328&action=edit
Screencast

DESCRIPTION
When a Kwi window is already open, launching Kwi again from a different
directory (via Dolphin's "Open Terminal Here" or from the command line) opens a
new window, but in the working directory of the first instance instead of the
requested one. With no Kwi window open, it starts in the correct directory.

STEPS TO REPRODUCE
1. Make sure no Kwi window is open.
2. In Dolphin, right-click empty space in ~/Music and choose "Open Terminal
Here". Kwi opens in ~/Music (correct).
3. Leave that window open. In Dolphin, right-click empty space in ~/Templates
and choose "Open Terminal Here".

OBSERVED RESULT
A new Kwi window opens, but its title, prompt and `pwd` all show
/home/<user>/Music.

EXPECTED RESULT
The new window opens in /home/<user>/Templates.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.31.0
Qt Version: 6.11.2
Kwi: Flatpak nightly, branch master, commit
d01fba60c2669d3f16b2e23b75ed9dfc0f7e101db30e6bc6baf073d9ced63c43 (2026-11-09)

ADDITIONAL INFORMATION
- Not Dolphin-specific: with one Kwi window open, `cd ~/Templates && flatpak
run <app-id>` also opens the new window in ~/Music. With no Kwi window open,
the same command opens correctly in ~/Templates.
- It is a new window, not the existing one being raised (the shell prompt shows
a different start time).
- Closing all Kwi windows and repeating step 3 opens it correctly in
~/Templates.
- Screencast attached.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to