Relative file references are not normalized before they are used
Posted: 23.12.2017, 14:59
I'm using FreeCommader in a portable installation. There is a directory that is synchronized across all of my computers, and FreeCommander is in a subfolder. I have several other portable apps installed, and I need to reference them relative to the FreeCommander installation. (Otherwise it would not be portable...)
If I open the favourites toolbar (Ctrl+Shift+Y) and add a folder to the toolbar with absolute path, it works great. If I add a relative reference to a program, it also works. For example, if I add then it will start the program. But there is a bug: if I add a relative reference to a folder, then it does not work as expected.
For example, let's suppose that FreeCommander is installed into and let's say that I want to create an icon that opens . So I create a toolbar icon that points to . If I click on this icon, then the file pane opens at this directory: . In other words: the path also contains the "parent directory" references, it is not normalized. The file pane actually shows my subfolder, but it is impossible to go into them with Enter. (It is possible to go one directory up, though.)
Screenshot:
https://imgur.com/a/iYTRD
I hope it is clear what the problem is.
If I open the favourites toolbar (Ctrl+Shift+Y) and add a folder to the toolbar with absolute path, it works great. If I add a relative reference to a program, it also works. For example, if I add
Code: Select all
%FcSrcPath%\..\cmder\cmder.exe
For example, let's suppose that FreeCommander is installed into
Code: Select all
Z:\Sync\FreeCommander
Code: Select all
Sync\Documents
Code: Select all
%FcSrcPath%\..\Documents
Code: Select all
Z:\Sync\FreeCommander\..\Documents
Screenshot:
https://imgur.com/a/iYTRD
I hope it is clear what the problem is.