Expand system variable in <Environment/>

Lars Kirkeskov Sørup <[email protected]>
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAMoehnkeRbO0Ev0mmQTa0_GERg-kOc78_0tC3DyCwF4Wg7eikA@mail.gmail.com>
Hi,

I tried to search the archive to find anything about this but failed to do
so, so here goes.

We have a runner application that runs our own bytecode. The runner is OS
specific while the bytecode packages are multiplatform.

In order to allow these packages to persist data I would like to set an
enviroment variable across platforms, so these packages can remain platform
independendt (and thus single release etc.)

So, for our windows runner setting an enviroment variable to
%APPDATA%/mydir

or on MacOS:
$HOME/Library/mydir

but I cannot get 0install to expand system enviroment variable in value in
a <Environment/> tag within an <Implementation/>.

I have tried any syntax I could think off on Windows, e.g ${APPDATA},
$APPDATA, %APPDATA%, etc... to no avail.

So my question is, is this at all possible? If not, is there an alternative
pattern to reach the same goal or will I have to via batch/sh files to do
this?

All the best

Lars

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/

_______________________________________________
Zero-install-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zero-install-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.