kde4-config
Prints KDE installation paths
Synopsis
kde4-config
[--expandvars] [--prefix]
[--exec-prefix] [--libsuffix]
[--localprefix] [--version]
[--types] [--path type]
[--userpath type]
[--install type]
add an example, a script, a trick and tips
examples
Print the top-level KDE installation directory:
% kde4-config --prefix
Print a list of all resource types:
% kde4-config --types
Print the installed wallpaper path:
% kde4-config --path wallpaper
source
if which kde4-config &>
/dev/null; then
KDE_LOCAL_PREFIX=`kde4-config
--localprefix`
fi
source
export KDEDIRS=$INSTALL_PREFIX:$(kde4-config --prefix)
alias cmake="cmake
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX"
description
kde4-config
is a command line program used to retrieve information about
KDE installation or user paths.
Use this
program to determine where the various aspects of the KDE
installation reside on your system.
options
--expandvars
expand ${prefix} and
${exec_prefix} in output
--prefix
Compiled in prefix for KDE
libraries
--exec-prefix
Compiled in exec_prefix for KDE
libraries
--libsuffix
Compiled in library path
suffix
--localprefix
Prefix in $HOME used to
write files
--version
Compiled in version string for
KDE libraries
--types
Print a list of all available
KDE resource types
--path
type
Search path for the specified
type
--userpath
type
User paths for the types:
desktop|autostart|trash|document
--install
type
Prefix to install resource
files to
bugs
None known.
see also
kdeoptions
author
Stephan
Kulow <coolo[:at:]kde[:dot:]org>
Author.