PUBLIC_IMAGEPATH
The PUBLIC_IMAGEPATH
element defines the public resources directory used
by applications.
Syntax
<PUBLIC_IMAGEPATH>path</PUBLIC_IMAGEPATH>
- Where path is a path to your application resources.
Child elements
There are no child elements.
Usage
The PUBLIC_IMAGEPATH
element specifies the path to the public resources
directory that the DVM or fglrun uses to locate application resources such as images.
By default, the path is set by the resource
$(res.public.resources)
to
"common" in the as.xcf file.
<RESOURCE Id="res.public.resources" Source="INTERNAL">common</RESOURCE>
The
directory "common" is relative to the root directory
appdata/public, where "appdata" is defined by the resource
$(res.appdata.path). Application resources are therefore sought in the
appdata/public/common directory.Usage example with resource
#...
<UA_OUTPUT>
<PROXY></PROXY>
<PUBLIC_IMAGEPATH>$(res.public.resources)</PUBLIC_IMAGEPATH>
<GBC>gbc</GBC>
<TIMEOUT Using="cpn.wa.timeout"/>
</UA_OUTPUT>
#...
Usage example with path
To set a path to your public resources directory in your application configuration file
(xcf), add a
UA_OUTPUT
element with the
PUBLIC_IMAGEPATH
element. <APPLICATION Parent="defaultwa">
#...
<UA_OUTPUT>
<PROXY></PROXY>
<PUBLIC_IMAGEPATH>myapp/newpictures</PUBLIC_IMAGEPATH>
<GBC>gbc</GBC>
<TIMEOUT Using="cpn.wa.timeout"/>
</UA_OUTPUT>
#...
</APPLICATION>
In this example, the value of the PUBLIC_IMAGEPATH
is
set to "myapp/newpictures", so images are therefore sought in the
appdata/public/myapp/newpictures directory.Parent elements
This element is a child of the following element: UA_OUTPUT