Fossil Forum
Post: fossil help all and configuration location
Hi, It looks like the "fossil help all" command needs to be updated. This is using fossil 2.28. It does not accurately reflect where the configuration info is located. It says it "The ~/.fossil file records the location of all repositories for a user." However, this is incorrect as a note by Richard Hipp says:
(16) By Richard Hipp (drh) on 2020-04-19 15:52:12 in reply to 15.2 [link] [source] Another description of the algorithm:
Condition Filename
- variable FOSSIL_HOME exists $FOSSIL_HOME/.fossil
- file ~/.fossil exists ~/.fossil
- variable XDG_CONFIG_HOME exists $XDG_CONFIG_HOME/fossil.db
- directory ~/.config exists ~/.config/fossil.db
- otherwise... ~/.fossil
I think this provides XDG compatibility on new installs without breaking older installs, even on XDG-configured systems. It should just work. If you have both "fossil-new" and "fossil-old" installed on your system, they should both use ~/.fossil. If you upgrade so that only "fossil-new" is installed on your system and want to start using the XDG-named file, simply run:
mv ~/.fossil ~/.config/fossil.db
So, the configuation file can be one of two names and one of three locations depending on various conditions.
Thanks