Bug Tracker – Full Text Bug Listing

Bug 1174 (writeable-wadpath)

Summary: Include a user-writeable WAD path by default.
Product: Odamex Reporter: 166291
Component: LauncherAssignee: Odamex Bug Reporter <odamex-bug-reporter>
Status: NEW ---    
Severity: enhancement CC: mdvulture, mwoodj
Priority: P1    
Version: 0.7.x (Old)   
Hardware: All   
OS: Linux   

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.