--- NsCDE/libexec/fp_manage_subpanel.orig	2021-04-24 03:10:51 UTC
+++ NsCDE/libexec/fp_manage_subpanel
@@ -5,16 +5,6 @@ if [ -z $HOME ]; then
    exit 3
 fi
 
-if [ -z $NSCDE_ROOT ]; then
-   echo "Error: NSCDE_ROOT is not set cannot continue."
-   exit 4
-fi
-
-if [ ! -e "$NSCDE_ROOT" ]; then
-   echo "Error: NSCDE_ROOT does not exist. Cannot continue."
-   exit 5
-fi
-
 if [ -z $FVWM_USERDIR ]; then
    echo "Error: FVWM_USERDIR is not set cannot continue."
    exit 6
@@ -113,7 +103,7 @@ function reset_this_button
       fi
 
       if (($RestartFP == 0)); then
-         $NSCDE_ROOT/bin/nscde_fvwmclnt "PipeRead \"\$[NSCDE_ROOT]/libexec/fpseticon Btn${PanelNo}\""
+         $NSCDE_ROOT/bin/nscde_fvwmclnt "PipeRead \"${PREFIX}/libexec/nscde/fpseticon Btn${PanelNo}\""
       else
          $NSCDE_ROOT/bin/nscde_fvwmclnt "InfoStoreRemove FP.Btn${PanelNo}.type"
          $NSCDE_ROOT/bin/nscde_fvwmclnt "f_RestartFrontPanel"
