Bug 491554 - Kate can't tell Konsole the correct filepath when Konsole is using the Fish shell
Summary: Kate can't tell Konsole the correct filepath when Konsole is using the Fish s...
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 24.05.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-10 23:07 UTC by Raxelgrande (Pepi)
Modified: 2024-08-11 18:10 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raxelgrande (Pepi) 2024-08-10 23:07:59 UTC
SUMMARY
When you are editing a file and you open the terminal button, Kate opens up a Konsole window with the path set to the same as the file you are editing (example: file in desktop? Konsole opens on the desktop path, you do an ls and it shows the file you are editing as part of ls' output).

Now, it seems that this is a Konsole+Bash only feature, or that support for opening the correct file path on the Fish shell is currently broken. 

I do want to point out that i added fastfetch to my fish configuration, that might interfere but i really doubt it.

STEPS TO REPRODUCE
1. Install Kate, Konsole and Fish
2. Set Fish as the default shell on Konsole
3. Open a file outside the home directory, like in /home/documents
4. Open Konsole, see if path changes to the current location of the file you are editing.

OBSERVED RESULT
Konsole doesn't behave the same way as with bash, not following the correct path of the file you have currently open.

EXPECTED RESULT
That Konsole behaves in the same way as when using Bash as the default shell.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.1.4 Plasma, Arch Linux with 6.10.3-zen1-2-zen Kernel
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Comment 1 Christoph Cullmann 2024-08-11 16:39:47 UTC
Hmm, what is your setting for the terminal plugin?
See 'Configure -> Terminal'.
Comment 2 Raxelgrande (Pepi) 2024-08-11 17:51:54 UTC
(In reply to Christoph Cullmann from comment #1)
> Hmm, what is your setting for the terminal plugin?
> See 'Configure -> Terminal'.

Just checked, found the setting, works perfectly, not a bug. 
Maybe Kate could change the default behavior to be consistent across Bash and Fish, as the default for bash is following the path.
Comment 3 Christoph Cullmann 2024-08-11 18:10:23 UTC
Thanks for checking. That setting is not depending on the shell, but the default changed a while ago.