2019.0 - XDG base dir support

20 views
Skip to first unread message

Andreas Metzler

unread,
Jan 26, 2019, 10:02:23 AM1/26/19
to hugi...@googlegroups.com
Hello,

is xdg base dir support enabled automatically? I do not see it. Starting
and stopping hugin with an empty ~/ generates .hugindata directory and
.hugin file instead of something like ~/.config/hugin/huginrc and
~/.local/share/hugin.

cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

T. Modes

unread,
Jan 26, 2019, 10:19:29 AM1/26/19
to hugin and other free panoramic software
Hi


Am Samstag, 26. Januar 2019 16:02:23 UTC+1 schrieb Andreas Metzler:
is xdg base dir support enabled automatically? I do not see it. Starting
and stopping hugin with an empty ~/ generates .hugindata directory and
.hugin file instead of something like ~/.config/hugin/huginrc and
~/.local/share/hugin.

It is automatically enabled when compiling with wxWidgets 3.1.1. or later. It is not supported in older wxWidgets versions (also not in 3.x series).
The code is in function CheckConfigFilename() in src/hugin1/base_wx/wxPlatform.cpp if you want to have a look.
Currently only the settings are stored to XDG spec. I have not yet touched the .hugindata directory.

Thomas

T. Modes

unread,
Jan 26, 2019, 2:08:14 PM1/26/19
to hugin and other free panoramic software

Am Samstag, 26. Januar 2019 16:19:29 UTC+1 schrieb T. Modes:
Currently only the settings are stored to XDG spec. I have not yet touched the .hugindata directory.

I implemented now also the switch for the hugindata directory. But for consistence this code is only activated when wxWidgets 3.1.1 is installed.
Reply all
Reply to author
Forward
0 new messages