/[antiright]/antiright/src/ACE
ViewVC logotype

Diff of /antiright/src/ACE

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by jefbed, Mon Aug 30 00:02:27 2004 UTC revision 1.22 by jefbed, Fri Oct 22 17:08:47 2004 UTC
# Line 409  Background_Editor() Line 409  Background_Editor()
409      if [ "$color" != "" ]; then      if [ "$color" != "" ]; then
410          xsetroot -solid "$color"          xsetroot -solid "$color"
411      fi      fi
412        # This allows the background color to be persistant across
413        # sessions.
414        grep -v ~/.antirightrc xsetroot > /tmp/antirightrc.$$
415        echo 'xsetroot -solid "$color"' >> /tmp/antirightrc.$$
416        mv /tmp/antirightrc.$$ ~/.antirightrc
417  }  }
418  Mount_File_System()  Mount_File_System()
419  {  {
# Line 563  ACE_set_theme() Line 568  ACE_set_theme()
568  }  }
569    
570  if [ $# -gt 0 ]; then # This runs a command configured in ~/.antiright  if [ $# -gt 0 ]; then # This runs a command configured in ~/.antiright
571          TMP=${TMPDIR:-/tmp}/ACE.$$      if grep theme <<EOF
572          echo $1 > $TMP  $1
573          if grep theme $TMP; then  EOF
574              ACE_set_theme $1          then
575          else          ACE_set_theme $1
576              command=$(ACE_read_configuration_value $1)      else
577              shift          # This allows parameters to be passed to a configured command.
578              $command $@ &          command="$(ACE_read_configuration_value $1)"
579          fi          shift
580          trap "rm $TMP* 2>/dev/null" 0          $command $@ &
581        fi
582  else  else
583      ACE_Panel      ACE_Panel
584  fi  fi

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26