You are not logged in.

#1 2021-09-24 19:44:11

jpringle1
Guest

Start a program using a specific config folder

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)

#2 2021-09-24 20:58:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,255

Re: Start a program using a specific config folder

No idea whetehr LO adheres to it, but https://wiki.archlinux.org/title/XDG_Base_Directory

Offline

#3 2021-09-24 22:58:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,498
Website

Re: Start a program using a specific config folder

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

Board footer

Powered by FluxBB