You are not logged in.
I need a command to start a program with a specific config folder other than the default.
Let's use LibreOffice for example: Its config files are stored in .config/libreoffice/4/user. i need to run a command to start libreoffice using config folder /user2 for one time only.
Is there a command to help me do this?
Last edited by jpringle1 (2021-09-24 19:44:46)
No idea whetehr LO adheres to it, but https://wiki.archlinux.org/title/XDG_Base_Directory
Offline
Using XDG_CONFIG_HOME or related variables as suggest above is as close as possible to a general solution as possible - but there is no general solution to this question as it is entirely up to the program in question where it looks for it's config file.
A lot of programs will also have command line options, and / or their own environment variables to specify and alternative configuration file/folder - read the man page for each program you need to do this for.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline