path: root/offapi/com
diff options
authorSamuel Mehrbrodt <>2016-03-07 21:52:20 +0100
committerStephan Bergmann <>2016-03-08 15:35:54 +0000
commit16fb0d3d0f68708c183c53bd18660a23970b77fe (patch)
tree8e86df69dcf4ab52368a0a1d767dff62930549fd /offapi/com
parentf9ddda353851b019c2eb8a427ee9f8042f8107b0 (diff)
tdf#98407 PathSubstitution: Add substitution for $(username)
This allows to use the username as a placeholder in the config paths (Autotext, Gallery, etc) Change-Id: I76434e980cd8ec8785a5587d0bc5fdd67dc42de2 Reviewed-on: Reviewed-by: Stephan Bergmann <> Tested-by: Stephan Bergmann <>
Diffstat (limited to 'offapi/com')
1 files changed, 3 insertions, 1 deletions
diff --git a/offapi/com/sun/star/util/PathSubstitution.idl b/offapi/com/sun/star/util/PathSubstitution.idl
index 0b30fec48130..c0d99bc9f549 100644
--- a/offapi/com/sun/star/util/PathSubstitution.idl
+++ b/offapi/com/sun/star/util/PathSubstitution.idl
@@ -58,6 +58,8 @@ module com { module sun { module star { module util {
<dd>The current temporary directory.</dd>
<dd>The value of PATH environment variable.</dd>
+ <dt>\$(username)</dt>
+ <dd>The username (login name) of the currently active user, excluding the domain name on Windows. (Available since LibreOffice 5.2)</dd>
<dd>The language code used by the Office, like 0x0009=English, 0x0409=English US.</dd>
@@ -65,7 +67,7 @@ module com { module sun { module star { module util {
Attention: Most predefined variables describe an absolute path.
- The only exceptions are: \$(langid) and \$(vlang).
+ The only exceptions are: \$(username), \$(langid) and \$(vlang).
Therefore the service implementation should only substitute variables which
are located at the start of a provided path string or are part of a multi-path.
This special service is not designed to be a text substiution but shall