FVWM: FvwmPerl problem

From: Shay Hill <sah_at_simcoparts.com>
Date: Mon, 19 Jan 2004 09:25:49 -0600

version 2.5.8

I have written a working perl script to read colors from my .fvwm2rc
file and build appropriately colored icons. The script *works* from the
command line, but fails when called from .fvwm2rc. with
FvwmPerl load create-icons.fpl

Here is a minimal version of my perl script. There are some lines
commented out. The script works, but is of course useless, without these
lines. With these lines, the output file fails to open when called from
.fvwm2rc.

#!/usr/bin/perl
open(FVWM, "/home/shay/.fvwm/.fvwm2rc");
undef $/;
$_ = <FVWM>;
close FVWM;
# /SetEnv FGColor "(.*[^"])"\n/g;
# $FGC = $1;
open(OUT, ">/home/shay/.fvwm/iconify.xpm");
print OUT "\". c $FGC\",\n";
close OUT;

Any help appreciated. I have worked on this a lot and have become very
frustrated.

 -Shay



--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Jan 19 2004 - 09:29:05 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST