Gemba / skyscraper

Powerful and versatile game data scraper written in Qt and C++.
https://gemba.github.io/skyscraper/
GNU General Public License v3.0
51 stars 14 forks source link

macOS "skipped-<platform>-cache.txt" file location specification #84

Open cdaters opened 2 months ago

cdaters commented 2 months ago

In macOS, the home folder for users is typically '/Users/<user>/' as opposed to the normal Linux location for such. So in my '/User/<user>/.skyscraper/config.ini' file, I have updated the paths in the '[main]' section appropriately. My ROMs are stored on an external USB drive at '/Volumes/<external_drive>/roms' and I have updated those sections in '[main]' and '[<platform>]' accordingly. My initial scrape went well except at the end, there were 7 missing games and I was told by Skyscraper that these were saved to '/home/<USER>/.skyscraper/skipped-atari2600-cache.txt' and I could not find a file anywhere on my system with that name.

Since this path does not exist on my Mac, what is the proper way to define/set this in config.ini? Since 'skipped' is a boolean setting according to the documentation, is there a different option for setting the path that I am not finding in the docs?

cdaters commented 2 months ago

I did find the 'skipped' text files in my /Users/<USER>/.skyscraper' folder...but I think it would still be nice to configure this path if possible...

Gemba commented 4 weeks ago

The string /home/<USER>/ is hardcoded in Skyscraper, as Mac was not the primary use case. It should print the specific path for the OS and the actual users. That should be doable.

The configuration of the location of the skipped-* files could be done if I implement #70, but AFAICT MacOS does not follow the XDG Spec. On a Mac you could set the XDG_* environment variables, but then Skyscraper must be launched from a bash or similar and not via the Finder (cf. https://apple.stackexchange.com/a/473324).

Gemba commented 3 days ago

At least the static /home/<USER>/ should be dynamically now replaced with /Users/<user>/ with #89 merged.

If you utilize the XDG_... environment variables before Skyscraper start you should also be able to put the "skipped" files somewhere else: https://gemba.github.io/skyscraper/XDG/