|
|
@ -138,26 +138,26 @@ import java.util.ArrayList;
|
|
|
|
<b>KStandardDirs supports the following environment variables:</b>
|
|
|
|
<b>KStandardDirs supports the following environment variables:</b>
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
KDEDIRS: This may set an additional number of directory prefixes to
|
|
|
|
TDEDIRS: This may set an additional number of directory prefixes to
|
|
|
|
search for resources. The directories should be separated
|
|
|
|
search for resources. The directories should be separated
|
|
|
|
by ':'. The directories are searched in the order they are
|
|
|
|
by ':'. The directories are searched in the order they are
|
|
|
|
specified.
|
|
|
|
specified.
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
KDEDIR: Used for backwards compatibility. As KDEDIRS but only a single
|
|
|
|
TDEDIR: Used for backwards compatibility. As TDEDIRS but only a single
|
|
|
|
directory may be specified. If KDEDIRS is set KDEDIR is
|
|
|
|
directory may be specified. If TDEDIRS is set TDEDIR is
|
|
|
|
ignored.
|
|
|
|
ignored.
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
KDEHOME: The directory where changes are saved to. This directory is
|
|
|
|
TDEHOME: The directory where changes are saved to. This directory is
|
|
|
|
used to search for resources first. If KDEHOME is not
|
|
|
|
used to search for resources first. If TDEHOME is not
|
|
|
|
specified it defaults to "$HOME/.kde"
|
|
|
|
specified it defaults to "$HOME/.kde"
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
KDEROOTHOME: Like KDEHOME, but used for the root user.
|
|
|
|
KDEROOTHOME: Like TDEHOME, but used for the root user.
|
|
|
|
If KDEROOTHOME is not set it defaults to the .kde directory in the
|
|
|
|
If KDEROOTHOME is not set it defaults to the .kde directory in the
|
|
|
|
home directory of root, usually "/root/.kde".
|
|
|
|
home directory of root, usually "/root/.kde".
|
|
|
|
Note that the setting of $HOME is ignored in this case.
|
|
|
|
Note that the setting of $HOME is ignored in this case.
|
|
|
@ -189,7 +189,7 @@ public class KStandardDirs implements QtSupport {
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
KDEDIRS or KDEDIR is taking into account
|
|
|
|
TDEDIRS or TDEDIR is taking into account
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
@ -264,7 +264,7 @@ public class KStandardDirs implements QtSupport {
|
|
|
|
for resources. So is a way to get the path to libtdecore.la
|
|
|
|
for resources. So is a way to get the path to libtdecore.la
|
|
|
|
to findResource("lib", "libtdecore.la"). KStandardDirs will
|
|
|
|
to findResource("lib", "libtdecore.la"). KStandardDirs will
|
|
|
|
then look into the subdir lib of all elements of all prefixes
|
|
|
|
then look into the subdir lib of all elements of all prefixes
|
|
|
|
($KDEDIRS) for a file libtdecore.la and return the path to
|
|
|
|
($TDEDIRS) for a file libtdecore.la and return the path to
|
|
|
|
the first one it finds (e.g. /opt/kde/lib/libtdecore.la)
|
|
|
|
the first one it finds (e.g. /opt/kde/lib/libtdecore.la)
|
|
|
|
@param type The type of the wanted resource
|
|
|
|
@param type The type of the wanted resource
|
|
|
|
@param filename A relative filename of the resource.
|
|
|
|
@param filename A relative filename of the resource.
|
|
|
@ -280,7 +280,7 @@ public class KStandardDirs implements QtSupport {
|
|
|
|
specific files in the resource are ignored.
|
|
|
|
specific files in the resource are ignored.
|
|
|
|
E.g. by restricting the "wallpaper" resource, only system-wide
|
|
|
|
E.g. by restricting the "wallpaper" resource, only system-wide
|
|
|
|
installed wallpapers will be found by this class. Wallpapers
|
|
|
|
installed wallpapers will be found by this class. Wallpapers
|
|
|
|
installed under the $KDEHOME directory will be ignored.
|
|
|
|
installed under the $TDEHOME directory will be ignored.
|
|
|
|
@param type The type of the resource to check
|
|
|
|
@param type The type of the resource to check
|
|
|
|
@param relPath A relative path in the resource.
|
|
|
|
@param relPath A relative path in the resource.
|
|
|
|
@return True if the resource is restricted.
|
|
|
|
@return True if the resource is restricted.
|
|
|
|