Repository navigation
Spawning a new terminal session on KDE inconsistently sets the working directory #15241
Unanswered
omentic
asked this question in
Issue Triage
Replies: 1 comment 6 replies
|
In Ghostty, new windows inherit the working directory of the currently focused terminal by default. To make new windows always open in window-inherit-working-directory = falseFor your second shortcut ( |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
I am using GhostTTY on KDE Linux. I have
Super+Enterbound to spawning a terminal. When I spawn a terminal for the first time, it defaults to launching in~/. When I go to a different directory (ex.cd /) and launch a new terminal, some very strange behaviour happens. When I first launch a new terminal from a terminal at a different path, it spawns in~/, as expected. However, if I immediately close that terminal and then launch a new terminal, it spawns in the current working directory of the open terminal. This is strange and entirely unexpected, and seems like a bug to me.Note that I am using the global spawn shortcut, not launching GhostTTY manually.
Expected Behavior
The terminal should spawn in
~/always, being launched from a global shortcut (i.e. not by runningghostty +new-window).Actual Behavior
The terminal inconsistently spawns in
~/or the open directory in the current terminal.Reproduction Steps
See issue description. This is a rather strange issue. I encountered it while trying to get
Super+Enterto spawn windows consistently at~/andSuper+Shift+Enterto spawn windows within the working directory of the current window.Ghostty Logs
No response
Ghostty Version
OS Version Information
NixOS 26.05
(Linux only) Display Server
Wayland
(Linux only) Desktop Environment/Window Manager
KDE Plasma 6.6.6
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.All reactions