[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #36477] use XDG dirs instead of HOME

From: Mike Miller
Subject: [Octave-bug-tracker] [bug #36477] use XDG dirs instead of HOME
Date: Wed, 6 Mar 2019 17:56:28 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36

Follow-up Comment #10, bug #36477 (project octave):

Attached is a first draft at resolving this bug. This patch loads a new
startup file, following the conventions of XDG_CONFIG_HOME on GNU/Linux and
Unixy systems, and uses %LOCALAPPDATA% on Windows systems.

* Can someone who builds for Windows regularly test this patch for me? I have
no idea if what I threw together is right. If it works, you should see a
message "debug: load new startup file: ...", and the path to that file should
look sane. If you then create that file, and put a "disp" or something in it,
it should work as expected.

* @jwe I would appreciate any thoughts about how I am creating new library
functions here. My idea is to have one new function in liboctave called
"get_user_config_directory" that returns the platform-dependent base directory
for config files, and another function, maybe "get_octave_config_directory"
that returns the "/octave" subdir of the former, but I'm not sure where I want
to place that one. There will also probably be future additions for returning
a vector of configuration directories (both XDG and Windows define multiple
configuration locations that could be read in sequence).

(file #46450)

Additional Item Attachment:

File name: xdg.patch                      Size:4 KB


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]