Zandronum Chat on our Discord Server Get the latest version: 3.0
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003354Doomseeker[All Projects] Bugpublic2017-12-11 16:482018-08-27 07:31
Assigned ToZalewa 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version1.0 
Target VersionFixed in Version 
Summary0003354: Portable mode is portable in name only.
DescriptionThe '--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 InformationThis has been so since forever.

Attached Files

- Relationships
related to 0003262assignedZalewa Allow $HOME and/or ~/ in file paths 

-  Notes
There are no notes attached to this issue.

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: AOSP
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
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
Powered by Mantis Bugtracker