|Anonymous | Login | Signup for a new account||2021-01-21 08:22 UTC|
|My View | View Issues | Change Log | Roadmap | Doomseeker Issue Support Ranking | Rules | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003354||Doomseeker||[All Projects] Bug||public||2017-12-11 16:48||2018-08-27 07:31|
|Target Version||Fixed in Version|
|Summary||0003354: Portable mode is portable in name only.|
|Description||The '--portable' mode is really a '--stick-config-files-next-to-exe' mode.|
The idea of '--portable' is to put the app on a USB stick and take it with you anywhere. However, when you look at config files, you will notice that it saves absolute paths everywhere when it spawns the config files. If your Windows loads the USB under the letter "G:\", the .ini will contain paths "G:\Doomseeker\.doomseeker\". Then you take the stick with you somewhere, and it gets mounted as "F:\" - nothing works because all paths are invalid now.
This is similar to 0003262 where user home dir is not saved as $HOME or ~.
The proposed fix is to create a place-holder token that can be used when configuring various paths and this token will always resolve to the current "dir-with-executable" path.
Propositions for such token:
We should come up with something that has minimal chance of colliding with actual OS path but also won't be too cumbersome and won't be QString::replaced() incorrectly and won't potentially collide with env vars that could also be expanded in the same way.
For example, EAGLE uses "$EAGLEDIR" as a placeholder.
|Additional Information||This has been so since forever.|
|Only registered users can voice their support. Click here to register, or here to log in.|
|Opponents:||No one explicitly opposes this issue yet.|
|2017-12-11 16:48||Zalewa||New Issue|
|2017-12-11 16:49||Zalewa||Relationship added||related to 0003262|
|2017-12-11 16:49||Zalewa||Description Updated||View Revisions|
|2018-08-27 07:31||Zalewa||Assigned To||=> Zalewa|
|2018-08-27 07:31||Zalewa||Status||new => assigned|
Questions or other issues? Contact Us.
|Copyright © 2000 - 2021 MantisBT Team|