mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 00:39:41 +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:
parent
c7a5b874f1
commit
7b2c26cc3c
@ -206,11 +206,7 @@ int Selector::exec(int startSelection) {
|
||||
if (subdir == "..") {
|
||||
selected = goToParentDir(fl);
|
||||
} else {
|
||||
dir += subdir;
|
||||
char *buf = realpath(dir.c_str(), NULL);
|
||||
dir = (string) buf + '/';
|
||||
free(buf);
|
||||
|
||||
dir += subdir + '/';
|
||||
prepare(fl);
|
||||
selected = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user