MantisBT - Doomseeker
View Issue Details
0003244Doomseeker[All Projects] Bugpublic2017-09-01 16:252018-10-27 22:55
WubTheCaptain 
Blzut3 
normalminoralways
closedfixed 
x86_64Debian GNU/Linuxbuster/sid
1.1 
1.21.2 
0003244: /usr/bin is configured as default IWAD and PWAD path
A default configuration (or lack of) in Doomseeker adds /usr/bin by default to file paths to scan for IWAD and PWAD files.

The /usr/bin directory is reserved in the Filesystem Hierarchy Standard for user "executable commands on the system". WAD files do not meet this criteria, they belong under the /usr/share directory as architecture-independent data files.

  1. Ensure no existing user-specific configuration is present (e.g. remove $HOME/.doomseeker).

  2. Run Doomseeker. A message should popup about first-time configuration check.

  3. Check the File Paths tab in configuration.
'http://www.pathname.com/fhs/pub/fhs-2.3.html#USRBINMOSTUSERCOMMANDS [^]'
No tags attached.
related to 0001417closed Blzut3 Have Doomseeker find files in the binary directory first 
child of 0003246acknowledged  Debian packaging 
Issue History
2017-09-01 16:25WubTheCaptainNew Issue
2017-09-01 16:29WubTheCaptainNote Added: 0018213
2017-09-01 16:31ZalewaRelationship addedchild of 0003246
2017-09-06 02:31Blzut3Assigned To => Blzut3
2017-09-06 02:31Blzut3Statusnew => assigned
2017-09-06 02:31Blzut3Target Version => 1.2
2017-09-06 02:33Blzut3Note Added: 0018233
2017-09-28 00:21WubTheCaptainRelationship addedrelated to 0001417
2017-11-06 04:12Blzut3Note Added: 0018810
2017-11-06 04:12Blzut3Statusassigned => needs testing
2017-11-06 04:12Blzut3Fixed in Version => 1.2
2018-09-24 18:58WubTheCaptainNote Added: 0019709
2018-09-24 18:58WubTheCaptainStatusneeds testing => resolved
2018-09-24 18:58WubTheCaptainResolutionopen => fixed
2018-09-24 19:01WubTheCaptainNote Added: 0019710
2018-10-27 22:55WubTheCaptainStatusresolved => closed

Notes
(0018213)
WubTheCaptain   
2017-09-01 16:29   
On a related matter, /usr/share/games/doom/ is not included in the default list. (0003245)
(0018233)
Blzut3   
2017-09-06 02:33   
Default list is the directory that the binary is located in and the configuration directory. The former is primarily for Windows where that may be a sane location, but this issue is honestly an oversight on my part since I always tested in my build directory which would be a relatively sane directory for such files.
(0018810)
Blzut3   
2017-11-06 04:12   
Directories named bin and MacOS are no longer added by default.

Note: I didn't guard the change in OS ifdefs since the odds of someone actually installing Doomseeker into directories with those names are so tiny that it's not worth making the code ugly over. Especially since the user can just go and manually add the directory if they're so inclined to.
(0019709)
WubTheCaptain   
2018-09-24 18:58   
'https://bitbucket.org/Doomseeker/doomseeker/commits/d0b7adc6d1dc3b50f2883ae8a5bb10ebbad5cb2d [^]'
'https://bitbucket.org/Doomseeker/doomseeker/commits/334d6a04aa1897b084b12bf64658220106bb816a [^]'

As far as I'm concerned, this ticket is resolved for GNU/Linux and OpenBSD (Unices) in my testing... to the limitation I did not "install" it as a package on those operating systems, but I have a belief it works as intended.

The changes in code are so simple to understand, I'm inclined to say this is resolved without doing any testing on Windows or OS X.

Only one thing surprised me:

if(progBinDirName != "bin" && progBinDirName != "MacOS")


is not written with a logical OR operator, since a directory name ought to not be both at the same time:

if(progBinDirName != "bin" || progBinDirName != "MacOS")


But a logical AND works...
(0019710)
WubTheCaptain   
2018-09-24 19:01   
Logical OR/AND: Heh, I get it now. :)