If the variable $(username) exists in OpenOffice?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

If the variable $(username) exists in OpenOffice?

Jörg Schmidt-2
hello,

in the german forum (https://de.openoffice.info/viewtopic.php?f=3&p=294248#p294248) is asked if the following entry in the file registrymodifications.xcu works also for OpenOffice (for LibreOffice this entry works):

<item oor:path="/org.openoffice.Office.Paths/Paths/org.openoffice.Office.Paths:NamedPath['Work']"><prop oor:name="WritePath" oor:op="fuse"><value>file:///D:/Documents/$(username)</value></prop></item>


Neither in https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Predefined_Variables nor in https://www.openoffice.org/api/docs/common/ref/com/sun/star/util/PathSubstitution.html I find a reference to "$(username)", so it looks like this variable does not exist in OPenOffice.



Can someone please confirm or contradict my assumption?



greetings,
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: If the variable $(username) exists in OpenOffice?

Dennis Roczek-2
Hey,

file:///%APPDATA%/../../

should also work. ;-)

Dennis

Am 25.03.2021 um 10:11 schrieb Jörg Schmidt:

> hello,
>
> in the german forum (https://de.openoffice.info/viewtopic.php?f=3&p=294248#p294248) is asked if the following entry in the file registrymodifications.xcu works also for OpenOffice (for LibreOffice this entry works):
>
> <item oor:path="/org.openoffice.Office.Paths/Paths/org.openoffice.Office.Paths:NamedPath['Work']"><prop oor:name="WritePath" oor:op="fuse"><value>file:///D:/Documents/$(username)</value></prop></item>
>
>
> Neither in https://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Predefined_Variables nor in https://www.openoffice.org/api/docs/common/ref/com/sun/star/util/PathSubstitution.html I find a reference to "$(username)", so it looks like this variable does not exist in OPenOffice.
>
>
>
> Can someone please confirm or contradict my assumption?
>
>
>
> greetings,
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


OpenPGP_signature (855 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: If the variable $(username) exists in OpenOffice?

Jörg Schmidt-2
> -----Original Message-----
> From: Dennis Roczek [mailto:[hidden email]]
> Sent: Thursday, March 25, 2021 11:24 AM
> To: [hidden email]
> Subject: Re: If the variable $(username) exists in OpenOffice?
>
> Hey,
>
> file:///%APPDATA%/../../
>
> should also work. J

How is that supposed to work?

The desired path is D:\Documents\$(username) and here D:\Documents (not C:\ ... ) is not a system path but a fixed path which of course cannot be set with a system variable like %Appdata%.


Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: If the variable $(username) exists in OpenOffice?

Czesław Wolański
Hi Jörg, Dennis

> file:///%APPDATA%/../../
>
> should also work. ;-)

It does not work. AOO in 'Tools - Options - OpenOffice - Paths' shows
nothing for "My Documents".
(the same in case of LibreOffice).

Regarding "$(username)" - the source file "substitutepathvars.cxx"

AOO, Lines 107 - 128
http://openoffice-vm1-he-de.apache.org/xref/aoo419/main/framework/source/services/substitutepathvars.cxx?r=910823ae

LO, Lines 87 - 109
https://opengrok.libreoffice.org/xref/core/framework/source/services/substitutepathvars.cxx?r=b4ec5a94

AOO does not define "$(username)" - but that might prove nothing.


Regards,
Czesław






чт, 25 мар. 2021 г. в 11:34, Jörg Schmidt <[hidden email]>:

> > -----Original Message-----
> > From: Dennis Roczek [mailto:[hidden email]]
> > Sent: Thursday, March 25, 2021 11:24 AM
> > To: [hidden email]
> > Subject: Re: If the variable $(username) exists in OpenOffice?
> >
> > Hey,
> >
> > file:///%APPDATA%/../../
> >
> > should also work. J
>
> How is that supposed to work?
>
> The desired path is D:\Documents\$(username) and here D:\Documents (not
> C:\ ... ) is not a system path but a fixed path which of course cannot be
> set with a system variable like %Appdata%.
>
>
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

RE: If the variable $(username) exists in OpenOffice?

Jörg Schmidt-2
Hello Czesław,

> -----Original Message-----
> From: Czesław Wolański [mailto:[hidden email]]
> Sent: Thursday, March 25, 2021 6:57 PM
> To: [hidden email]
> Subject: Re: If the variable $(username) exists in OpenOffice?

> Regarding "$(username)" - the source file "substitutepathvars.cxx"
>
> AOO, Lines 107 - 128
> http://openoffice-vm1-he-de.apache.org/xref/aoo419/main/framew
> ork/source/services/substitutepathvars.cxx?r=910823ae
>
> LO, Lines 87 - 109
> https://opengrok.libreoffice.org/xref/core/framework/source/se
> rvices/substitutepathvars.cxx?r=b4ec5a94
>
> AOO does not define "$(username)" - but that might prove nothing.

Thank you. I will post this information in the forum thread.


greetings,
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]