1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-25 07:45:21 +02:00

Don't apply realpath() to entered subdirs in Selector

This way, symlinks stay in the path, so when we go up a level we end
up in the previous directory instead of in the linked directory's
parent.
This commit is contained in:
Maarten ter Huurne 2014-08-20 14:57:17 +02:00
parent c7a5b874f1
commit 7b2c26cc3c

View File

@ -206,11 +206,7 @@ int Selector::exec(int startSelection) {
if (subdir == "..") { if (subdir == "..") {
selected = goToParentDir(fl); selected = goToParentDir(fl);
} else { } else {
dir += subdir; dir += subdir + '/';
char *buf = realpath(dir.c_str(), NULL);
dir = (string) buf + '/';
free(buf);
prepare(fl); prepare(fl);
selected = 0; selected = 0;
} }