I've edited/started/done a start-compiz and a start-ccsm script, they export LD_LIBRARY_PATH, and PYTHONPATH, etc...
How can I get them into Compiz?
They would be new files that aren't in there currently, so I have to find and mess with an install script and add them in somehow?
(and/or perhaps Compiz could be made so that these scripts would be optional)
Guess I start a new branch/bug report?
-----
#!/bin/sh
# start-compiz
# Assumes script is in a direct sibdirectory of COMPIZ_PREFIX, like "${COMPIZ_PREFIX}/bin/"
COMPIZ_PREFIX=$(dirname $(cd $(dirname "$0"); pwd))
# If the above isn't correct, it can be commented it out, and the line below edited
#COMPIZ_PREFIX=
#VERBOSE="no"
VERBOSE="yes"
# Echos the arguments if verbose
verbose()
{
if [ "${VERBOSE}" = "yes" ]; then
echo "$@"
fi
}
if [ -n `which "python2.7"` ]; then
PYTHONVERSION="2.7"
else
if [ -n `which "python2.6"` ]; then
PYTHONVERSION="2.6"
else
echo "neither python2.7 nor python2.6 where found"
fi
fi
verbose "PYTHONVERSION=\"${PYTHONVERSION}\""
if [ -n "${PYTHONVERSION}" ]; then
#unset PYTHONPATH
export PYTHONPATH="${COMPIZ_PREFIX}/lib/python${PYTONVERSION}/site-packages:${COMPIZ_PREFIX}/lib64/python${PYTONVERSION}/site-packages:${COMPIZ_PREFIX}/lib32/python${PYTONVERSION}/site-packages::${PYTHONPATH}"
verbose "PYTHONPATH=\"${PYTHONPATH}\""
fi
# gets rid of plama panels, etc... probably not good
#kquitapp plasma-desktop
# Kill any running instance of ccsm
#pkill -x ccsm
# Assumes script is in a direct subdirectory of $COMPIZ_PREFIX, like "${COMPIZ_PREFIX}/bin/
COMPIZ_PREFIX=$(dirname $(cd $(dirname "$0"); pwd))
# If the above isn't correct, it can be commented it out, and the line below edited
#COMPIZ_PREFIX=
VERBOSE="no"
#VERBOSE="yes"
# Echos the arguments if verbose
verbose()
{
if [ "${VERBOSE}" = "yes" ]; then
echo "$@"
fi
}
# with this way somehow in either bash or sh, with this, python editor will start, not the intended result!
#if $(`which "python2.7"` &> /dev/null); then
# export PYTHONPATH="${COMPIZ_PREFIX}/lib/python2.7/site-packages:${COMPIZ_PREFIX}/lib64/python2.7/site-packages:${COMPIZ_PREFIX}/lib32/python2.7/site-packages::${PYTHONPATH}"
#fi
#if $(which python2.6 &> /dev/null); then
# export PYTHONPATH=$COMPIZ_PREFIX/lib/python2.6/site-packages:$COMPIZ_PREFIX/lib64/python2.6/site-packages:$COMPIZ_PREFIX/lib32/python2.6/site-packages::$PYTHONPATH
#fi
if [ -n `which "python2.7"` ]; then
PYTHON_VERSION="2.7"
else
if [ -n `which "python2.6"` ]; then
PYTHON_VERSION="2.6"
else
echo "neither python2.7 nor python2.6 where found"
fi
fi
verbose "PYTHON_VERSION=\"${PYTHON_VERSION}\""
if [ -n "${PYTHON_VERSION}" ]; then
#unset PYTHONPATH
export PYTHONPATH="${COMPIZ_PREFIX}/lib/python${PYTHON_VERSION}/site-packages:${COMPIZ_PREFIX}/lib64/python${PYTHON_VERSION}/site-packages:${COMPIZ_PREFIX}/lib32/python${PYTHON_VERSION}/site-packages::${PYTHONPATH}"
verbose "PYTHONPATH=\"${PYTHONPATH}\""
fi
# Hack to fix ccsm from complaining and causing incorrect plugin config option ordering
rm -rf ~/.cache/compizconfig-1 2&1>/dev/null
I've edited/started/done a start-compiz and a start-ccsm script, they export LD_LIBRARY_PATH, and PYTHONPATH, etc...
How can I get them into Compiz?
They would be new files that aren't in there currently, so I have to find and mess with an install script and add them in somehow?
(and/or perhaps Compiz could be made so that these scripts would be optional)
Guess I start a new branch/bug report?
-----
#!/bin/sh
# start-compiz
# Assumes script is in a direct sibdirectory of COMPIZ_PREFIX, like "${COMPIZ_ PREFIX} /bin/" PREFIX= $(dirname $(cd $(dirname "$0"); pwd))
COMPIZ_
# If the above isn't correct, it can be commented it out, and the line below edited
#COMPIZ_PREFIX=
#VERBOSE="no"
VERBOSE="yes"
# Echos the arguments if verbose
verbose()
{
if [ "${VERBOSE}" = "yes" ]; then
echo "$@"
fi
}
verbose "COMPIZ_ PREFIX= \"${COMPIZ_ PREFIX} \"" PATH="$ {COMPIZ_ PREFIX} /lib/pkgconfig: ${COMPIZ_ PREFIX} /lib64/ pkgconfig: ${COMPIZ_ PREFIX} /lib32/ pkgconfig: ${PKG_CONFIG_ PATH}" PATH="$ {COMPIZ_ PREFIX} /lib:${ COMPIZ_ PREFIX} /lib64: ${COMPIZ_ PREFIX} /lib32: ${LD_LIBRARY_ PATH}" PATH=${ LD_LIBRARY_ PATH}"
#export PKG_CONFIG_
export LD_LIBRARY_
verbose "LD_LIBRARY_
if [ -n `which "python2.7"` ]; then "2.7" ="2.6" \"${PYTHONVERSI ON}\"" "${COMPIZ_ PREFIX} /lib/python$ {PYTONVERSION} /site-packages: ${COMPIZ_ PREFIX} /lib64/ python$ {PYTONVERSION} /site-packages: ${COMPIZ_ PREFIX} /lib32/ python$ {PYTONVERSION} /site-packages: :${PYTHONPATH} " \"${PYTHONPATH} \""
PYTHONVERSION=
else
if [ -n `which "python2.6"` ]; then
PYTHONVERSION
else
echo "neither python2.7 nor python2.6 where found"
fi
fi
verbose "PYTHONVERSION=
if [ -n "${PYTHONVERSION}" ]; then
#unset PYTHONPATH
export PYTHONPATH=
verbose "PYTHONPATH=
fi
# gets rid of plama panels, etc... probably not good
#kquitapp plasma-desktop
verbose "${COMPIZ_ PREFIX} /bin/compiz" --replace ccp "$@" & PREFIX} /bin/compiz" --replace ccp "$@" &
"${COMPIZ_
-----
#!/bin/sh
# start-ccsm
# Kill any running instance of ccsm
#pkill -x ccsm
# Assumes script is in a direct subdirectory of $COMPIZ_PREFIX, like "${COMPIZ_ PREFIX} /bin/ PREFIX= $(dirname $(cd $(dirname "$0"); pwd))
COMPIZ_
# If the above isn't correct, it can be commented it out, and the line below edited
#COMPIZ_PREFIX=
VERBOSE="no"
#VERBOSE="yes"
# Echos the arguments if verbose
verbose()
{
if [ "${VERBOSE}" = "yes" ]; then
echo "$@"
fi
}
verbose "COMPIZ_ PREFIX= \"${COMPIZ_ PREFIX} \"" PATH="$ {COMPIZ_ PREFIX} /lib/pkgconfig: ${COMPIZ_ PREFIX} /lib64/ pkgconfig: ${COMPIZ_ PREFIX} /lib32/ pkgconfig: ${PKG_CONFIG_ PATH}" PATH=\" ${PKG_CONFIG_ PATH}\" " PATH="$ {COMPIZ_ PREFIX} /lib:${ COMPIZ_ PREFIX} /lib64: ${COMPIZ_ PREFIX} /lib32: ${LD_LIBRARY_ PATH}" PATH=\" ${LD_LIBRARY_ PATH}\" "
export PKG_CONFIG_
verbose "PKG_CONFIG_
export LD_LIBRARY_
verbose "LD_LIBRARY_
# with this way somehow in either bash or sh, with this, python editor will start, not the intended result! "${COMPIZ_ PREFIX} /lib/python2. 7/site- packages: ${COMPIZ_ PREFIX} /lib64/ python2. 7/site- packages: ${COMPIZ_ PREFIX} /lib32/ python2. 7/site- packages: :${PYTHONPATH} " $COMPIZ_ PREFIX/ lib/python2. 6/site- packages: $COMPIZ_ PREFIX/ lib64/python2. 6/site- packages: $COMPIZ_ PREFIX/ lib32/python2. 6/site- packages: :$PYTHONPATH
#if $(`which "python2.7"` &> /dev/null); then
# export PYTHONPATH=
#fi
#if $(which python2.6 &> /dev/null); then
# export PYTHONPATH=
#fi
if [ -n `which "python2.7"` ]; then VERSION= "2.7" VERSION= "2.6" VERSION= \"${PYTHON_ VERSION} \"" "${COMPIZ_ PREFIX} /lib/python$ {PYTHON_ VERSION} /site-packages: ${COMPIZ_ PREFIX} /lib64/ python$ {PYTHON_ VERSION} /site-packages: ${COMPIZ_ PREFIX} /lib32/ python$ {PYTHON_ VERSION} /site-packages: :${PYTHONPATH} " \"${PYTHONPATH} \""
PYTHON_
else
if [ -n `which "python2.6"` ]; then
PYTHON_
else
echo "neither python2.7 nor python2.6 where found"
fi
fi
verbose "PYTHON_
if [ -n "${PYTHON_VERSION}" ]; then
#unset PYTHONPATH
export PYTHONPATH=
verbose "PYTHONPATH=
fi
# Hack to fix ccsm from complaining and causing incorrect plugin config option ordering compizconfig- 1 2&1>/dev/null
rm -rf ~/.cache/
"${COMPIZ_ PREFIX} /bin/ccsm" &
# copied/modified from other install of Compiz++