mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-05 08:49:43 +02:00
Make the Selector return the canonicalised absolute pathname
This commit is contained in:
parent
b73391486f
commit
ba5ef51269
@ -185,8 +185,16 @@ int Selector::exec(int startSelection) {
|
||||
if (fl.isFile(selected)) {
|
||||
file = fl[selected];
|
||||
close = true;
|
||||
|
||||
char *buf = realpath(file.c_str(), NULL);
|
||||
file = buf;
|
||||
free(buf);
|
||||
} else {
|
||||
dir = dir+fl[selected]+"/";
|
||||
char *buf = realpath(dir.c_str(), NULL);
|
||||
dir = buf;
|
||||
free(buf);
|
||||
|
||||
selected = 0;
|
||||
firstElement = 0;
|
||||
prepare(&fl,&screens,&titles);
|
||||
|
Loading…
Reference in New Issue
Block a user