| Summary: | Session restore: symlinks get resolved | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | Per (phobie) <kdebugs.phobie> |
| Component: | general | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | RESOLVED LATER | ||
| Severity: | normal | CC: | adaptee |
| Priority: | NOR | ||
| Version First Reported In: | 2.4.3 | ||
| Target Milestone: | --- | ||
| Platform: | Debian unstable | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Per (phobie)
2010-06-23 12:59:08 UTC
Yes, apparently when WorkDir gets saved in session file it gets expanded. ProcessInfo:
if ( readable && info.isSymLink() )
{
setCurrentDir( info.symLinkTarget() );
return true;
}
I'm not sure if there is a reason to return the target of a link.
Konsole gets the current dir via /proc/PID/cwd example ~/s linked to /usr/share kdetrunk@jupiterkdetrunk:~/s$ pwd /home/kdetrunk/s lrwxrwxrwx 1 kdetrunk kdetrunk 0 Jun 30 11:57 /proc/28764/cwd -> /usr/share/ So when Konsole gets the target of /proc/PID/cwd it bypasses the link. Generally, it is impossible to implement that. konsole only knows about the symlink-resolved form of PWD. Only shell knows about the symlink stuff. See comment #1 of bug #244449 for details. |