|Anonymous | Login | Signup for a new account||2018-02-24 02:20 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|
|0003262||Doomseeker||[All Projects] Bug||public||2017-09-12 03:33||2017-12-11 16:49|
|Platform||x86_64||OS||Debian GNU/Linux||OS Version||buster/sid|
|Target Version||Fixed in Version|
|Summary||0003262: Allow $HOME and/or ~/ in file paths|
|Description||Doomseeker currently requires the file path to be absolute. ~/ and $HOME are not recognized as valid alternatives to /home/<username>, instead /home/<username> (e.g. /home/wub in my case) is written to each configuration. In example for IWAD paths, ~/ and $HOME fail with "Iwad Path error".|
This could possibly be extended to other user-configurable file paths, such as server executable path.
|Steps To Reproduce|
|Additional Information||Changing the path of my home folder (as a consequence of renaming my username on the local system) means all my previous configurations with IWAD paths in the "Create Game" window and various IWAD/PWAD paths subsequently need fixing to the new location.|
If I recall correctly, at worst this means the "Create Game" window fails to list the additional WADs and they will be missing. The paths still exist in the .ini configuration and need to be manually edited to the new paths in a text editor.
In reverse: If I keep my old home location, no change is required if the user wants to hard-type their old path.
|Attached Files||dpkg.log [^] (3,173 bytes) 2017-09-12 03:37|
edited on: 2017-09-12 03:38
Tested with Qt5 5.9.1 for original suggestion.
edited on: 2017-09-21 10:43
In addition to what's described in the steps to reproduce, here's some test case guidance for implementers (consider ~/ is /home/user1/):
QDir::homePath() may be useful.
After some consideration, I think this is an upstream issue with QFileDialog in Qt which requires no change in Doomseeker. The change isn't as trivial as I initially thought it would be. It'd be nice to have in Qt for sure.
Should we close this ticket?
Nevermind. This issue was fixed in Qt 4.8 six years ago:https://bugreports.qt.io/browse/QTBUG-20571 [^]
Seems like something about Doomseeker's use of QFileInfo is wrong, then. QFileInfo in Qt 5 definitely supports tilde.
|I'd still like to have a look around. Maybe I'll find out we're doing something non-standard with paths and it doesn't work everywhere. I'll also think if I want to support env vars resolution in paths.|
|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-09-12 03:33||WubTheCaptain||New Issue|
|2017-09-12 03:37||WubTheCaptain||Note Added: 0018287|
|2017-09-12 03:37||WubTheCaptain||File Added: dpkg.log|
|2017-09-12 03:38||WubTheCaptain||Note Edited: 0018287||View Revisions|
|2017-09-21 10:40||WubTheCaptain||Note Added: 0018355|
|2017-09-21 10:43||WubTheCaptain||Note Edited: 0018355||View Revisions|
|2017-09-27 18:30||Zalewa||Relationship added||child of 0003246|
|2017-09-27 19:18||WubTheCaptain||Note Added: 0018398|
|2017-09-27 19:34||WubTheCaptain||Note Added: 0018399|
|2017-09-27 20:01||Zalewa||Note Added: 0018400|
|2017-09-27 21:53||WubTheCaptain||Relationship added||child of 0003279|
|2017-09-27 21:54||WubTheCaptain||Relationship deleted||child of 0003246|
|2017-10-04 19:27||WubTheCaptain||Category||Suggestion => Bug|
|2017-10-05 02:44||WubTheCaptain||Status||new => acknowledged|
|2017-12-11 16:49||Zalewa||Relationship added||related to 0003354|
Questions or other issues? Contact Us.
|Copyright © 2000 - 2018 MantisBT Team|