LyX user file in linux

Scott Kostyshak skostysh at lyx.org
Wed Jul 24 14:12:29 UTC 2024


On Wed, Jul 24, 2024 at 10:40:00AM GMT, José Matos wrote:
> Hi,
>   this is not a pressing issue but it is something that has been
> nagging me for a while.
> 
> The user directory is linux/unix systems is by default ~/.lyx
> 
> That was the historical location for all programs. The problem with
> this approach is that it clutters the home directory for the user.
> 
> The amount of dot files and dot directories could be absurd, in the
> orders of hundreds.
> 
> The solution for this came from free desktop standards with the
> creation of a template with several standard dot directories:
> 
> ~/.config
> ~/.local
> 
> The idea is that inside those directories all the files are visible
> (this not dot files).
> 
> 
> What I would likt to and my main concern regarding this is how can we
> detect that? And if ~/.config exists privilege that location as the
> default location for lyx.
> 
> 
> So my proposal is for new installations to migrate for this location
> keeping, of course, compatibility with previous location if it exists.
> 
> What do you think? Any idea about this?

I don't know much about this, but from what I understand the environment
variable XDG_DATA_HOME can be useful. If I recall, if it's not set,
things work as normal; and if it is set, programs use it to find config
files.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240724/4b64ba6f/attachment.asc>


More information about the lyx-devel mailing list