https://bugs.documentfoundation.org/show_bug.cgi?id=101661

Stephan Bergmann <sberg...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Stephan Bergmann <sberg...@redhat.com> ---
The value of $(work) is taken from the
/org.openoffice.Office/Paths/Variables/Work configuration property (defaulting
to the home dir if that property is not set; cf.
SubstitutePathVariables::GetWorkVariableValue in
framework/source/services/substitutepathvars.cxx).

On Linux, that configuration property is an "external" property, querying a
value from a desktop backend
(oor:external="com.sun.star.configuration.backend.DesktopBackend
WorkPathVariable", officecfg/registry/data/org/openoffice/Office/Paths.xcu).

For GNOME-based desktops:

* Until LO 5.0 there was a GConf-based desktop backend that returned the value
of XDG_DOCUMENTS_DIR *if that value denoted an existing directory*.  (And
otherwise, the fallback to the home dir would kick in.)

* In LO 5.1, that GConf-based desktop backend has been removed, without
replacement (3cf557c12d27f1b2250e69a543136da098112d80 "drop gconf integration
as per ESC decision").  So the fallback to the home dir always kicks in.

* In LO 5.2, support for XDG_DOCUMENTS_DIR (and XDG_TEMPLATES_DIR) has been
added back into the generic Linux desktop backend code (i.e., the code that
isn't specific to GNOME but also handles KDE etc.;
b5c05876f73c31270bc374e4f481ef1d09a42e5f "Related: rhbz#1065807 recover using
xdg templates and documents settings"), *but in a way so that the value of
XDG_DOCUMENTS_DIR is always returned, regardless of whether that value denotes
an existing directory or not.*  (So the home dir fallback does not kick in.)

(For KDE-based desktops, prior to LO 5.2 the value had been obtained through a
call to KGlobalSettings::documentPath(), and reported back regardless of
whether the dir would exist; presumably, the net effect of reading
KGlobalSettings::documentPath() vs. XDG_DOCUMENTS_DIR is the same.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to