[Konsole-devel] [konsole] [Bug 336618] new tab shell loses symlink path

Egmont Koblinger egmont at gmail.com
Sat Sep 13 15:13:52 UTC 2014


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

Egmont Koblinger <egmont at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egmont at gmail.com

--- Comment #1 from Egmont Koblinger <egmont at gmail.com> ---
As far as I can tell, konsole digs into /proc to figure out the current
directory. With this approach it cannot tell if a symlink was followed, it only
sees the actual resolved physical directory.

In order to address this bug (and anyway to have a cleaner, less OS dependent,
more flexible solution), konsole should abandon this approach and follow Mac
Terminal (probably also iTerm2) and Gnome-Terminal (>= 3.8) in using OSC 7.
This way konsole wouldn't dig into /proc, but it would be the application's
(e.g. bash's) responsibility to tell the current directory to the terminal.
This path could potentially contain symlinks. Konsole would, apart from cd'ing
there, also set $PWD to let the shell know about the symlink components. (bash
duplicates get_current_dir_name()'s behavior, that is, if $PWD contains a
symlink but actually points to the current directory then uses this value
including the symlink components.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list