vkQuake icon indicating copy to clipboard operation
vkQuake copied to clipboard

Support user data folders for PAK file storage

Open rikarudo opened this issue 3 months ago • 6 comments

Currently, for the macOS version of vkQuake, it is required to store the Quake data files (PAK files) next to the application package (such as in the Applications folder). This approach is not ideal and can be inconvenient, especially since the Applications directory typically requires elevated permissions to modify and is intended only for applications, not their data.

Would it be possible to support either of these user-specific folders as the default locations for storing the PAK files and other game data?

  • ~/Library/Application Support/vkQuake
  • ~/.vkQuake

This change would simplify installation, align with macOS best practices for app data storage, and prevent the need to store files in the middle of the apps Applications directory. Thank you for considering this improvement!

rikarudo avatar Sep 26 '25 11:09 rikarudo

~/Library/Application Support/vkQuake

this is possible by supplying the option -basedir <path>

~/.vkQuake

This is supported, but is a compile time option see file meson_options.txt

j4reporting avatar Sep 26 '25 14:09 j4reporting

Hi!

Thank you for the prompt answer and help.

Regarding the second option (.~/vkQuake), is it possible to enable it by default in a next build? I must admit I have only downloaded the binary from Mac Source Ports and am not really inclined to compile the sources myself. Another question: with this option enabled, would the savegames also be stored there?

Thank you very much!

rikarudo avatar Sep 26 '25 15:09 rikarudo

is it possible to enable it by default in a next build?

I think we should ask @tomkidd. He builds the releases on mac source ports.

with this option enabled, would the savegames also be stored there?

yes, everything, config files, screenshots savegames etc. You can share one set of pak files accessible by every user, but save your files in ~/.vkquake.

j4reporting avatar Sep 26 '25 15:09 j4reporting

That would be great! Thank you, @vsonnier and @tomkidd!

rikarudo avatar Sep 26 '25 16:09 rikarudo

Yeah I've been meaning to contribute something along these lines. Since id Tech engines are usually good at making a listing of places to choose from adding some more entries to the list, at least on Apple devices, should be easy enough. Probably the ~/.vkquake bit would be useful for any unix systems and the Application Support can really just be the SDL GetPrefPath location.

tomkidd avatar Sep 26 '25 16:09 tomkidd

Great! If I can be of assistance or if you need someone to test these changes further down the road, please let me know.

rikarudo avatar Sep 26 '25 16:09 rikarudo