Changeset View
Changeset View
Standalone View
Standalone View
x11-wm/nscde/files/patch-NsCDE_libexec_nscde__setup
- This file was added.
--- NsCDE/libexec/nscde_setup.orig 2021-04-24 03:10:51 UTC | |||||
+++ NsCDE/libexec/nscde_setup | |||||
@@ -1,4 +1,4 @@ | |||||
-#!/usr/bin/env ksh93 | |||||
+#!${PREFIX}/bin/ksh93 | |||||
# | |||||
# This file is a part of the NsCDE - Not so Common Desktop Environment | |||||
@@ -7,7 +7,7 @@ | |||||
# | |||||
VERBOSE=0 | |||||
-export TEXTDOMAINDIR="$NSCDE_ROOT/share/locale" | |||||
+export TEXTDOMAINDIR="${PREFIX}/share/nscde/locale" | |||||
export TEXTDOMAIN="nscde_setup" | |||||
export OS=$(uname -s) | |||||
@@ -16,16 +16,6 @@ if [ -z $HOME ]; then | |||||
exit 3 | |||||
fi | |||||
-if [ -z $NSCDE_ROOT ]; then | |||||
- gettext -s "Error: NSCDE_ROOT is not set cannot continue." | |||||
- exit 4 | |||||
-fi | |||||
- | |||||
-if [ ! -e "$NSCDE_ROOT" ]; then | |||||
- gettext -s "Error: NSCDE_ROOT does not exist. Cannot continue." | |||||
- exit 5 | |||||
-fi | |||||
- | |||||
if [ -z $FVWM_USERDIR ]; then | |||||
gettext -s "Error: FVWM_USERDIR is not set cannot continue." | |||||
exit 6 | |||||
@@ -61,7 +51,7 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
gettext -s "Generating NsCDE fvwm Colorset ..." | |||||
fi | |||||
- $NSCDE_ROOT/libexec/nscde_palette_colorgen.py -p $NSCDE_ROOT/share/palettes/${NSCDE_PALETTE}.dp \ | |||||
+ ${PREFIX}/libexec/nscde/nscde_palette_colorgen.py -p ${PREFIX}/share/nscde/palettes/${NSCDE_PALETTE}.dp \ | |||||
-n $NSCDE_PALETTE_NCOLORS -f > "$FVWM_USERDIR/NsCDE-Colorset.conf" | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
@@ -79,8 +69,8 @@ function setup_nscde | |||||
# Xdefaults includes | |||||
locale_Initializing_default=$(gettext -s "Initializing default") | |||||
if [ ! -e "${FVWM_USERDIR}/Xdefaults" ]; then | |||||
- $NSCDE_ROOT/libexec/nscde_palette_colorgen.py -p $NSCDE_ROOT/share/palettes/${NSCDE_PALETTE}.dp \ | |||||
- -n $NSCDE_PALETTE_NCOLORS -i $NSCDE_ROOT/share/config_templates/Xdefaults -c > "$FVWM_USERDIR/Xdefaults" | |||||
+ ${PREFIX}/libexec/nscde/nscde_palette_colorgen.py -p ${PREFIX}/share/nscde/palettes/${NSCDE_PALETTE}.dp \ | |||||
+ -n $NSCDE_PALETTE_NCOLORS -i ${PREFIX}/share/nscde/config_templates/Xdefaults -c > "$FVWM_USERDIR/Xdefaults" | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${FVWM_USERDIR}/Xdefaults ${already_exists}." | |||||
@@ -96,7 +86,7 @@ function setup_nscde | |||||
fi | |||||
if [ ! -e "${FVWM_USERDIR}/Xdefaults.fontdefs" ]; then | |||||
- cp "${NSCDE_ROOT}/share/config_templates/Xdefaults.fontdefs" "${FVWM_USERDIR}/Xdefaults.fontdefs" | |||||
+ cp "${PREFIX}/share/nscde/config_templates/Xdefaults.fontdefs" "${FVWM_USERDIR}/Xdefaults.fontdefs" | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${FVWM_USERDIR}/Xdefaults.fontdefs ${already_exists}." | |||||
@@ -104,7 +94,7 @@ function setup_nscde | |||||
fi | |||||
if [ ! -e "${FVWM_USERDIR}/Xdefaults.mouse" ]; then | |||||
- cp "${NSCDE_ROOT}/share/config_templates/Xdefaults.mouse" "${FVWM_USERDIR}/Xdefaults.mouse" | |||||
+ cp "${PREFIX}/share/nscde/config_templates/Xdefaults.mouse" "${FVWM_USERDIR}/Xdefaults.mouse" | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${FVWM_USERDIR}/Xdefaults.mouse ${already_exists}." | |||||
@@ -114,10 +104,10 @@ function setup_nscde | |||||
# Xdefaults pieces dir (XAPPLRESDIR) | |||||
if [ ! -e "${FVWM_USERDIR}/app-defaults" ]; then | |||||
mkdir -p "${FVWM_USERDIR}/app-defaults" | |||||
- for appres in $NSCDE_ROOT/share/config_templates/app-defaults/*.tmpl | |||||
+ for appres in ${PREFIX}/share/nscde/config_templates/app-defaults/*.tmpl | |||||
do | |||||
appres="${appres%.tmpl}" | |||||
- $NSCDE_ROOT/libexec/nscde_palette_colorgen.py -p $NSCDE_ROOT/share/palettes/${NSCDE_PALETTE}.dp \ | |||||
+ ${PREFIX}/libexec/nscde/nscde_palette_colorgen.py -p ${PREFIX}/share/nscde/palettes/${NSCDE_PALETTE}.dp \ | |||||
-n $NSCDE_PALETTE_NCOLORS -i ${appres}.tmpl -c > $FVWM_USERDIR/app-defaults/${appres##*/} | |||||
done | |||||
else | |||||
@@ -128,7 +118,7 @@ function setup_nscde | |||||
# Xsettingsd daemon configuration | |||||
if [ ! -e "${FVWM_USERDIR}/Xsettingsd.conf" ]; then | |||||
- cp "${NSCDE_ROOT}/share/config_templates/Xsettingsd.conf" "${FVWM_USERDIR}/Xsettingsd.conf" | |||||
+ cp "${PREFIX}/share/nscde/config_templates/Xsettingsd.conf" "${FVWM_USERDIR}/Xsettingsd.conf" | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${FVWM_USERDIR}/Xsettingsd.conf ${already_exists}." | |||||
@@ -141,7 +131,7 @@ function setup_nscde | |||||
locale_Writing_default_background_pixel=$(gettext -s "Writing default background pixel") | |||||
echo "$locale_Writing_default_background_pixel ${FVWM_USERDIR}/.BGdefault ..." | |||||
fi | |||||
- cp ${NSCDE_ROOT}/share/config_templates/BGdefault "${FVWM_USERDIR}/.BGdefault" | |||||
+ cp ${PREFIX}/share/nscde/config_templates/BGdefault "${FVWM_USERDIR}/.BGdefault" | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${FVWM_USERDIR}/.BGdefault ${already_exists}." | |||||
@@ -153,7 +143,7 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo "$locale_Initializing_default ${FVWM_USERDIR}/NsCDE.conf ..." | |||||
fi | |||||
- cp ${NSCDE_ROOT}/config/NsCDE.conf ${FVWM_USERDIR}/NsCDE.conf | |||||
+ cp ${PREFIX}/etc/nscde/NsCDE.conf ${FVWM_USERDIR}/NsCDE.conf | |||||
if [ "$OS" == "NetBSD" ]; then | |||||
echo 'SetEnv XDG_CONFIG_DIRS $[XDG_CONFIG_DIRS]:/usr/pkg/etc/xdg' >> ${FVWM_USERDIR}/NsCDE.conf | |||||
@@ -171,7 +161,7 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo "$locale_Initializing_default ${FVWM_USERDIR}/NsCDE-Init.conf ..." | |||||
fi | |||||
- cp ${NSCDE_ROOT}/config/NsCDE-Init.conf ${FVWM_USERDIR}/NsCDE-Init.conf | |||||
+ cp ${PREFIX}/etc/nscde/NsCDE-Init.conf ${FVWM_USERDIR}/NsCDE-Init.conf | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${FVWM_USERDIR}/NsCDE-Init.conf ${already_exists}." | |||||
@@ -186,7 +176,7 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo "$locale_Initializing_default ${FVWM_USERDIR}/NsCDE-${localcf}.local ..." | |||||
fi | |||||
- cp ${NSCDE_ROOT}/share/config_templates/NsCDE-${localcf}.local ${FVWM_USERDIR}/NsCDE-${localcf}.local | |||||
+ cp ${PREFIX}/share/nscde/config_templates/NsCDE-${localcf}.local ${FVWM_USERDIR}/NsCDE-${localcf}.local | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${FVWM_USERDIR}/NsCDE-${localcf}.local ${already_exists}." | |||||
@@ -199,7 +189,7 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo "$locale_Initializing_default ${FVWM_USERDIR}/GeoDB.ini ..." | |||||
fi | |||||
- cp ${NSCDE_ROOT}/share/config_templates/GeoDB.ini ${FVWM_USERDIR}/GeoDB.ini | |||||
+ cp ${PREFIX}/share/nscde/config_templates/GeoDB.ini ${FVWM_USERDIR}/GeoDB.ini | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${FVWM_USERDIR}/GeoDB.ini ${already_exists}." | |||||
@@ -225,7 +215,7 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
locale_setting_default_cursor_theme=$(gettext -s "Setting default cursor theme") | |||||
echo "${HOME}/.icons/default/index.theme ${already_exists}. ${locale_setting_default_cursor_theme}." | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.icons/default/index.theme" -s "Icon Theme" -k Inherits -v dmz-aa | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.icons/default/index.theme" -s "Icon Theme" -k Inherits -v dmz-aa | |||||
fi | |||||
fi | |||||
@@ -260,14 +250,14 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo -ne "${HOME}/.gtkrc-2.0 ${already_exists}. " | |||||
gettext -s "Setting NsCDE theme options." | |||||
- $NSCDE_ROOT/bin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-key-theme-name -v '"Emacs"' | |||||
- $NSCDE_ROOT/bin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-theme-name -v '"NsCDE"' | |||||
- $NSCDE_ROOT/bin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-font-name -v '"DejaVu Serif Book 10"' | |||||
- $NSCDE_ROOT/bin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-application-prefer-dark-theme -v 1 | |||||
- $NSCDE_ROOT/bin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-icon-theme-name -v '"NsCDE"' | |||||
- $NSCDE_ROOT/bin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-button-images -v 0 | |||||
- $NSCDE_ROOT/bin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-menu-images -v 0 | |||||
- $NSCDE_ROOT/bin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-cursor-blink -v 0 | |||||
+ ${PREFIX}/sbin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-key-theme-name -v '"Emacs"' | |||||
+ ${PREFIX}/sbin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-theme-name -v '"NsCDE"' | |||||
+ ${PREFIX}/sbin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-font-name -v '"DejaVu Serif Book 10"' | |||||
+ ${PREFIX}/sbin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-application-prefer-dark-theme -v 1 | |||||
+ ${PREFIX}/sbin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-icon-theme-name -v '"NsCDE"' | |||||
+ ${PREFIX}/sbin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-button-images -v 0 | |||||
+ ${PREFIX}/sbin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-menu-images -v 0 | |||||
+ ${PREFIX}/sbin/confset.py -t properties -c "$HOME/.gtkrc-2.0" -k gtk-cursor-blink -v 0 | |||||
fi | |||||
fi | |||||
@@ -284,14 +274,14 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo -ne "${HOME}/.config/gtk-3.0/settings.ini already exists. " | |||||
gettext -s "Setting NsCDE theme options." | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-theme-name -v NsCDE | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-cursor-theme-name -v dmz-aa | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-button-images -v 0 | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-menu-images -v 0 | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-application-prefer-dark-theme -v 1 | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-font-name -v "DejaVu Serif Book 10" | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-icon-theme-name -v NsCDE | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-cursor-blink -v 0 | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-theme-name -v NsCDE | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-cursor-theme-name -v dmz-aa | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-button-images -v 0 | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-menu-images -v 0 | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-application-prefer-dark-theme -v 1 | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-font-name -v "DejaVu Serif Book 10" | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-icon-theme-name -v NsCDE | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/gtk-3.0/settings.ini" -s Settings -k gtk-cursor-blink -v 0 | |||||
fi | |||||
fi | |||||
@@ -302,7 +292,7 @@ function setup_nscde | |||||
echo "$locale_generating_default_theme_for_gtk2_gtk3_in $HOME/.themes/NsCDE ..." | |||||
fi | |||||
mkdir -p "$HOME/.themes" | |||||
- $NSCDE_ROOT/libexec/themegen.py $NSCDE_ROOT/share/palettes/${NSCDE_PALETTE}.dp $NSCDE_PALETTE_NCOLORS gtk2 gtk3 | |||||
+ ${PREFIX}/libexec/nscde/themegen.py ${PREFIX}/share/nscde/palettes/${NSCDE_PALETTE}.dp $NSCDE_PALETTE_NCOLORS gtk2 gtk3 | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
echo "${HOME}/.themes/NsCDE ${already_exists}." | |||||
@@ -320,7 +310,7 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo -ne "${HOME}/.config/Trolltech.conf ${already_exists}. " | |||||
gettext -s "Setting NsCDE style." | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/Trolltech.conf" -s Qt -k style -v GTK+ | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/Trolltech.conf" -s Qt -k style -v GTK+ | |||||
fi | |||||
fi | |||||
@@ -334,9 +324,9 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo "${HOME}/.config/qt5ct/qt5ct.conf ${already_exists}." | |||||
gettext -s "Setting NsCDE style." | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/qt5ct/qt5ct.conf" -s Appearance -k icon_theme -v NsCDE | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/qt5ct/qt5ct.conf" -s Appearance -k standard_dialogs -v gtk2 | |||||
- $NSCDE_ROOT/bin/confset.py -t ini -c "$HOME/.config/qt5ct/qt5ct.conf" -s Appearance -k style -v gtk2 | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/qt5ct/qt5ct.conf" -s Appearance -k icon_theme -v NsCDE | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/qt5ct/qt5ct.conf" -s Appearance -k standard_dialogs -v gtk2 | |||||
+ ${PREFIX}/sbin/confset.py -t ini -c "$HOME/.config/qt5ct/qt5ct.conf" -s Appearance -k style -v gtk2 | |||||
fi | |||||
fi | |||||
@@ -347,7 +337,7 @@ function setup_nscde | |||||
echo "$setting_default ${FVWM_USERDIR}/libexec/colormgr.local ..." | |||||
fi | |||||
mkdir -p "${FVWM_USERDIR}/libexec" | |||||
- cp ${NSCDE_ROOT}/share/config_templates/colormgr.local "${FVWM_USERDIR}/libexec/colormgr.local" | |||||
+ cp ${PREFIX}/share/nscde/config_templates/colormgr.local "${FVWM_USERDIR}/libexec/colormgr.local" | |||||
chmod +x "${FVWM_USERDIR}/libexec/colormgr.local" | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
@@ -368,7 +358,7 @@ function setup_nscde | |||||
fi | |||||
if [ "x$ans" == "xy" ]; then | |||||
echo "${locale_enabling}: pageshowrootpager --> 1" | |||||
- $NSCDE_ROOT/bin/ised -c 's/InfoStoreAdd pageshowrootpager 0/InfoStoreAdd pageshowrootpager 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/InfoStoreAdd pageshowrootpager 0/InfoStoreAdd pageshowrootpager 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
elif [ "x$ans" == "xn" ]; then | |||||
echo "${locale_not_enabling} pageshowrootpager --> 0" | |||||
else | |||||
@@ -390,7 +380,7 @@ function setup_nscde | |||||
echo "$locale_enabled_by_default nscde_use_xscreensaver --> 1" | |||||
elif [ "x$ans" == "xn" ]; then | |||||
echo "$locale_disabling nscde_use_xscreensaver --> 0" | |||||
- $NSCDE_ROOT/bin/ised -c 's/InfoStoreAdd nscde_use_xscreensaver 1/InfoStoreAdd nscde_use_xscreensaver 0/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/InfoStoreAdd nscde_use_xscreensaver 1/InfoStoreAdd nscde_use_xscreensaver 0/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
else | |||||
gettext -s "Answer not understood." | |||||
echo "$locale_enabled_by_default nscde_use_xscreensaver --> 1" | |||||
@@ -401,7 +391,7 @@ function setup_nscde | |||||
if (($VERBOSE == 1)); then | |||||
echo "$setting_default ${FVWM_USERDIR}/Stalonetray.conf ..." | |||||
fi | |||||
- cp ${NSCDE_ROOT}/share/config_templates/Stalonetray.conf "${FVWM_USERDIR}/Stalonetray.conf" | |||||
+ cp ${PREFIX}/share/nscde/config_templates/Stalonetray.conf "${FVWM_USERDIR}/Stalonetray.conf" | |||||
else | |||||
if (($VERBOSE == 1)); then | |||||
locale_already_in_place=$(gettext -s "already in place") | |||||
@@ -419,7 +409,7 @@ function setup_nscde | |||||
echo "$locale_enabled_by_default nscde_use_stalonetray --> 1" | |||||
elif [ "x$ans" == "xn" ]; then | |||||
echo "$locale_disabling nscde_use_stalonetray --> 0" | |||||
- $NSCDE_ROOT/bin/ised -c 's/InfoStoreAdd nscde_use_stalonetray 1/InfoStoreAdd nscde_use_stalonetray 0/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/InfoStoreAdd nscde_use_stalonetray 1/InfoStoreAdd nscde_use_stalonetray 0/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
else | |||||
gettext -s "Answer not understood." | |||||
echo "$locale_enabled_by_default nscde_use_stalonetray --> 1" | |||||
@@ -435,7 +425,7 @@ function setup_nscde | |||||
fi | |||||
if [ "x$ans" == "xy" ]; then | |||||
echo "$locale_enabling nscde_use_xsettingsd --> 1" | |||||
- $NSCDE_ROOT/bin/ised -c 's/InfoStoreAdd nscde_use_xsettingsd 0/InfoStoreAdd nscde_use_xsettingsd 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/InfoStoreAdd nscde_use_xsettingsd 0/InfoStoreAdd nscde_use_xsettingsd 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
elif [ "x$ans" == "xn" ]; then | |||||
echo "$locale_not_enabling nscde_use_xsettingsd --> 0" | |||||
else | |||||
@@ -454,8 +444,8 @@ function setup_nscde | |||||
fi | |||||
if [ "x$ans" == "xy" ]; then | |||||
echo "$locale_enabling nscde_use_dunst --> 1" | |||||
- cp -f "$NSCDE_ROOT/share/config_templates/Dunst.conf" "$FVWM_USERDIR/Dunst.conf" | |||||
- $NSCDE_ROOT/bin/ised -c 's/InfoStoreAdd nscde_use_dunst 0/InfoStoreAdd nscde_use_dunst 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ cp -f "${PREFIX}/share/nscde/config_templates/Dunst.conf" "$FVWM_USERDIR/Dunst.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/InfoStoreAdd nscde_use_dunst 0/InfoStoreAdd nscde_use_dunst 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
elif [ "x$ans" == "xn" ]; then | |||||
echo "$locale_not_enabling nscde_use_dunst --> 0" | |||||
else | |||||
@@ -474,7 +464,7 @@ function setup_nscde | |||||
fi | |||||
if [ "x$ans" == "xy" ]; then | |||||
echo "$locale_enabling nscde_use_rofi --> 1" | |||||
- $NSCDE_ROOT/bin/ised -c 's/# InfoStoreAdd nscde_use_rofi 1/InfoStoreAdd nscde_use_rofi 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/# InfoStoreAdd nscde_use_rofi 1/InfoStoreAdd nscde_use_rofi 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
elif [ "x$ans" == "xn" ]; then | |||||
echo "$locale_not_enabling nscde_use_rofi --> 0" | |||||
else | |||||
@@ -491,14 +481,14 @@ function setup_nscde | |||||
fi | |||||
if [ "x$ans" == "xy" ]; then | |||||
echo "$locale_enabling desklastpage --> 1" | |||||
- $NSCDE_ROOT/bin/ised -c 's/InfoStoreAdd desklastpage 0/InfoStoreAdd desklastpage 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/InfoStoreAdd desklastpage 0/InfoStoreAdd desklastpage 1/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
elif [ "x$ans" == "xn" ]; then | |||||
echo "$locale_not_enabling desklastpage --> 0" | |||||
- $NSCDE_ROOT/bin/ised -c 's/InfoStoreAdd desklastpage 1/InfoStoreAdd desklastpage 0/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/InfoStoreAdd desklastpage 1/InfoStoreAdd desklastpage 0/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
else | |||||
gettext -s "Answer not understood." | |||||
echo "$locale_not_enabling desklastpage --> 0" | |||||
- $NSCDE_ROOT/bin/ised -c 's/InfoStoreAdd desklastpage 1/InfoStoreAdd desklastpage 0/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c 's/InfoStoreAdd desklastpage 1/InfoStoreAdd desklastpage 0/g' -f "$FVWM_USERDIR/NsCDE.conf" | |||||
fi | |||||
for filemgr in pcmanfm-qt pcmanfm krusader caja nemo thunar dolphin nautilus | |||||
@@ -518,10 +508,10 @@ function setup_nscde | |||||
read ans | |||||
if [ "x$ans" != "x" ]; then | |||||
echo "$locale_setting_filemgr filemgr --> ${ans}" | |||||
- $NSCDE_ROOT/bin/ised -c "s/InfoStoreAdd filemgr true/InfoStoreAdd filemgr ${ans}/g" -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c "s/InfoStoreAdd filemgr true/InfoStoreAdd filemgr ${ans}/g" -f "$FVWM_USERDIR/NsCDE.conf" | |||||
elif [ "x${fmsugestion}" != "x" ]; then | |||||
echo "$locale_setting_proposed_filemgr filemgr --> ${fmsugestion}" | |||||
- $NSCDE_ROOT/bin/ised -c "s/InfoStoreAdd filemgr true/InfoStoreAdd filemgr ${fmsugestion}/g" -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c "s/InfoStoreAdd filemgr true/InfoStoreAdd filemgr ${fmsugestion}/g" -f "$FVWM_USERDIR/NsCDE.conf" | |||||
else | |||||
echo "$locale_skipping_fm_set_later $FVWM_USERDIR/NsCDE.conf." | |||||
fi | |||||
@@ -544,12 +534,12 @@ function setup_nscde | |||||
if [ "x$ans" != "x" ]; then | |||||
echo "$locale_setting_editor xeditor --> ${ans}" | |||||
if [ "x$ans" != "gvim" ]; then | |||||
- $NSCDE_ROOT/bin/ised -c "s/InfoStoreAdd xeditor gvim/InfoStoreAdd xeditor ${ans}/g" -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c "s/InfoStoreAdd xeditor gvim/InfoStoreAdd xeditor ${ans}/g" -f "$FVWM_USERDIR/NsCDE.conf" | |||||
fi | |||||
elif [ "x${xedit_suggest}" != "x" ]; then | |||||
echo "$locale_setting_proposed_editor xeditor --> ${xedit_suggest}" | |||||
if [ "x$ans" != "gvim" ]; then | |||||
- $NSCDE_ROOT/bin/ised -c "s/InfoStoreAdd filemgr true/InfoStoreAdd xeditor ${xedit_suggest}/g" -f "$FVWM_USERDIR/NsCDE.conf" | |||||
+ ${PREFIX}/sbin/ised -c "s/InfoStoreAdd filemgr true/InfoStoreAdd xeditor ${xedit_suggest}/g" -f "$FVWM_USERDIR/NsCDE.conf" | |||||
fi | |||||
else | |||||
echo "$locale_setting_proposed_editor $FVWM_USERDIR/NsCDE.conf." | |||||
@@ -568,13 +558,13 @@ function setup_nscde | |||||
gettext -s "that you want to apply and confirm with OK in Color Style Manager" | |||||
sleep 2 | |||||
echo "" | |||||
- $NSCDE_ROOT/bin/nscde_fvwmclnt 'Module FvwmScript ColorMgr $[desk.n] $[NSCDE_PALETTE_NCOLORS]' | |||||
+ ${PREFIX}/sbin/nscde_fvwmclnt 'Module FvwmScript ColorMgr $[desk.n] $[NSCDE_PALETTE_NCOLORS]' | |||||
gettext -s "Logout and login again for the full changes to take effect." | |||||
echo "" | |||||
gettext -s "You can set \$[infostore.terminal] variable to your favorite" | |||||
echo "$locale_terminal_program_in \$HOME/.NsCDE/NsCDE.conf ${locale_or_leave_autodiscovery}." | |||||
echo "" | |||||
- echo "$locale_Hint_See $NSCDE_ROOT/share/doc/examples $locale_for_Gkrellm_X_session_and" | |||||
+ echo "$locale_Hint_See ${PREFIX}/share/examples/nscde $locale_for_Gkrellm_X_session_and" | |||||
gettext -s "other integration options you may want to apply." | |||||
sleep 1 | |||||
echo "" | |||||
@@ -583,8 +573,8 @@ function setup_nscde | |||||
if (($INTERACTIVE == 1)); then | |||||
gettext -s "Press RETURN to finish setup and start Color Style Manager." | |||||
read RET | |||||
- $NSCDE_ROOT/bin/nscde_fvwmclnt 'EdgeThickness 1' | |||||
- $NSCDE_ROOT/bin/nscde_fvwmclnt 'All ("ColorMgr", CirculateHit) AnimatedMove 50-50w 50-50w ewmhiwa' | |||||
+ ${PREFIX}/sbin/nscde_fvwmclnt 'EdgeThickness 1' | |||||
+ ${PREFIX}/sbin/nscde_fvwmclnt 'All ("ColorMgr", CirculateHit) AnimatedMove 50-50w 50-50w ewmhiwa' | |||||
exit 0 | |||||
fi | |||||
} |