You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Jörg Schmidt <jo...@j-m-schmidt.de> on 2021/03/25 09:11:41 UTC

If the variable $(username) exists in OpenOffice?

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: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


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

Posted by Jörg Schmidt <jo...@j-m-schmidt.de>.
Hello Czesław, 

> -----Original Message-----
> From: Czesław Wolański [mailto:czeslaw.wolanski@gmail.com] 
> Sent: Thursday, March 25, 2021 6:57 PM
> To: dev@openoffice.apache.org
> 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: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


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

Posted by Czesław Wolański <cz...@gmail.com>.
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 <jo...@j-m-schmidt.de>:

> > -----Original Message-----
> > From: Dennis Roczek [mailto:dennisroczek@libreoffice.org]
> > Sent: Thursday, March 25, 2021 11:24 AM
> > To: dev@openoffice.apache.org
> > 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: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
>

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

Posted by Jörg Schmidt <jo...@j-m-schmidt.de>.
> -----Original Message-----
> From: Dennis Roczek [mailto:dennisroczek@libreoffice.org] 
> Sent: Thursday, March 25, 2021 11:24 AM
> To: dev@openoffice.apache.org
> 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: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


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

Posted by Dennis Roczek <de...@libreoffice.org>.
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: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>