Opened 11 months ago

Last modified 11 months ago

#6827 new enhancement

Add command line option to specify path to user.cfg

Reported by: Dunedan Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Core engine Keywords:
Cc: Patch:

Description

For testing lobby related stuff I often have to run Pyrogenesis with different configuration options. While that's already possible using the -conf command line option, it becomes messy when running multiple instances of Pyrogenesis in parallel, as they'll all write to the same user.cfg file. Therefore, it'd be great to be able to specify a non-default location of the user.cfg to read and write to as command line parameter.

Change History (3)

comment:1 by Ralph Sennhauser, 11 months ago

Setting HOME or better yet XDG_CONFIG_HOME doesn't work for you?

comment:2 by Dunedan, 11 months ago

$HOME is too broad and would for example also result in a copy of cached data ($HOME/.cache/0ad) per instance.

$XDG_CONFIG_HOME would work, but that's probably limited to Linux and doesn't work for Windows and MacOS.

comment:3 by Stan, 11 months ago

Well on Windows you can only run one instance of the game using the same exe. So you need N installs. And if you want them to be independant you just use the -writableRoot command line argument.

Note: See TracTickets for help on using tickets.