FVWM: FvwmBacker only does Execs

From: <Tim_Phipps_at_HP.com>
Date: Thu, 24 Jul 1997 14:31:06 +0100 (BST)

FvwmBacker in 2.0.45 only does Unix commands. The following micro-patch makes
it able to invoke arbitrary fvwm commands (including functions):

*** FvwmBacker.c.orig Thu Jul 24 12:30:39 1997
--- FvwmBacker.c Thu Jul 24 12:34:41 1997
***************
*** 248,254 ****
        }
        else if(commands[body[0]].cmdStr != NULL)
        {
! system(commands[body[0]].cmdStr);
        }
      }
  }
--- 248,254 ----
        }
        else if(commands[body[0]].cmdStr != NULL)
        {
! SendFvwmPipe(commands[body[0]].cmdStr, (unsigned long)0);
        }
      }
  }

As you can see the change is only one line, the code to send commands to fvwm
was already in there! The man page should be changed too but that is left as an
exercise for the reader! (you need to add Exec in front of any old commands).

Does anyone have any objections to this. I find it useful as I can now make the
window border colours change on different desks.

Cheers,
Timbo.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Jul 24 1997 - 08:31:31 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST