Bug Tracker – Bug 1174

Include a user-writeable WAD path by default.

Last modified: 2016-09-16 00:29:58 UTC
Bug 1174 (writeable-wadpath) - Include a user-writeable WAD path by default.
Summary: Include a user-writeable WAD path by default.
Status: NEW
Alias: writeable-wadpath
Product: Odamex
Classification: Unclassified
Component: Launcher (show other bugs)
Version: 0.7.x (Old)
Hardware: All Linux
: P1 enhancement
Assignee: Odamex Bug Reporter
Depends on:
Reported: 2016-04-20 04:24 UTC by 166291
Modified: 2016-09-16 00:29 UTC (History)
2 users (show)

See Also:


Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this bug.
Description 166291 2016-04-20 04:24:29 UTC
Currently when using odalaunch it defaults to either the current directory or the installed location for WAD paths. On systems where the installed location is read-only or not otherwise writeable by the user, neither options fare out well and require manual configuration to have something consistent.

I've patched my version of odalaunch to include ~/.odamex as the first directory so WADs can be downloaded and put there without trouble, and my DOOMWADPATH specifies where read-only WADs can be found. This is consistent and predictable as opposed to wherever I first run odalaunch from.

This bug affects systems where the user cannot write to the install directory but still want odalaunch to work without spewing WADs all over their home directory.
Comment 1 Mike Wood 2016-07-24 16:35:46 UTC
The default would have to be something cross-compatible and should be obtained through the wxwidgets API. Some candidates:

wxStandardPaths::GetDocumentsDir() [http://docs.wxwidgets.org/trunk/classwx_standard_paths.html#aa87a172690af8f7535cc37f2e9b59c43] - Returns the user's Documents path.

wxStandardPaths::GetUserDir(Dir userDir) [http://docs.wxwidgets.org/trunk/classwx_standard_paths.html#a86bd7b0187fd299826060f06c7cff5ed] - With Dir_Downloads parameter value, returns the user's Downloads path.

Thoughts are welcome.