Changeset View
Changeset View
Standalone View
Standalone View
x11-wm/nscde/files/patch-NsCDE_libexec_fvwm-modules_FvwmScript
- This file was added.
--- NsCDE/libexec/fvwm-modules/FvwmScript.orig 2021-04-24 03:10:51 UTC | |||||
+++ NsCDE/libexec/fvwm-modules/FvwmScript | |||||
@@ -2,7 +2,7 @@ | |||||
# Check if there is a XOverrideFontCursor.so for LD_PRELOAD and if LD_PRELOAD is already in | |||||
# use so we can append to the variable, and be careful to use colon as library object separator | |||||
-if [ -x "$NSCDE_ROOT/lib/XOverrideFontCursor.so" ]; then | |||||
+if [ -x "${PREFIX}/lib/nscde/XOverrideFontCursor.so" ]; then | |||||
if [ "x$LD_PRELOAD" != "x" ]; then | |||||
echo "$LD_PRELOAD" | egrep -q "XOverrideFontCursor\.so" | |||||
if (($? != 0)); then | |||||
@@ -10,24 +10,25 @@ if [ -x "$NSCDE_ROOT/lib/XOverrideFontCursor.so" ]; th | |||||
ld_preload_lastchar=$(($ld_preload_wc - 1)) | |||||
ld_preload_last_letter=$(echo "$LD_PRELOAD" | cut -b $ld_preload_lastchar) | |||||
if [ "$ld_preload_lastletter" == ":" ]; then | |||||
- export LD_PRELOAD="$LD_PRELOAD:$NSCDE_ROOT/lib/XOverrideFontCursor.so" | |||||
+ export LD_PRELOAD="$LD_PRELOAD:${PREFIX}/lib/nscde/XOverrideFontCursor.so" | |||||
else | |||||
echo "$LD_PRELOAD" | egrep -q ' ' | |||||
if (($? == 0)); then | |||||
new_ld_preload=$(echo "$LD_PRELOAD" | tr ' ' ':') | |||||
- export LD_PRELOAD="$new_ld_preload:$NSCDE_ROOT/lib/XOverrideFontCursor.so" | |||||
+ export LD_PRELOAD="$new_ld_preload:${PREFIX}/lib/nscde/XOverrideFontCursor.so" | |||||
else | |||||
- export LD_PRELOAD="$LD_PRELOAD:$NSCDE_ROOT/lib/XOverrideFontCursor.so" | |||||
+ export LD_PRELOAD="$LD_PRELOAD:${PREFIX}/lib/nscde/XOverrideFontCursor.so" | |||||
fi | |||||
fi | |||||
else | |||||
- echo "Notice: $NSCDE_ROOT/lib/XOverrideFontCursor.so is already ld-preloaded, skipping" >&2 | |||||
+ echo "Notice: ${PREFIX}/lib/nscde/XOverrideFontCursor.so is already ld-preloaded, skipping" >&2 | |||||
fi | |||||
else | |||||
- export LD_PRELOAD="$NSCDE_ROOT/lib/XOverrideFontCursor.so" | |||||
+ export LD_PRELOAD="${PREFIX}/lib/nscde/XOverrideFontCursor.so" | |||||
fi | |||||
fi | |||||
# Call the real FvwmScript | |||||
-exec ${FVWM_MODULEDIR}/FvwmScript "$@" | |||||
+exec ${PREFIX}/libexec/fvwm/2.6.9/FvwmScript "$@" | |||||
+ | |||||