[Tilesathome] Possible inconsistency in handling of double quotes in tilesAtHome.conf on windows.
Rob Reid
rob at robreid.co.nz
Wed Nov 28 23:49:37 GMT 2007
When recently installing tiles at home on Win XP, I encountered the
following problem with the handling of double quotes on the Inkscape
configuration setting in tilesATHome.conf.
My Inkscape install is located in C:\Program Files\Inkscape\.
From what I can work out with my non existent perl skills is that the
'Inkscape=' conf setting is referenced twice.
- Firstly in tahconfig.pm where its making sure Inkscape is available
and outputing the version info:
tahconfig.pm(154): my $InkscapeV = `$Config->{Inkscape} --version`;
In this case if your Inkscape path contains spaces you need to use
double quotes in the conf setting (e.g Inkscape="C:\Program
Files\Inkscape\inkscape.exe"). If you don't you get the error message
'C:\Program' is not recognized as an internal or external
command,operable program or batch file.
Can't find inkscape (using "C:\Program Files\Inkscape\inkscape.exe")
- Secondly in tilesGen.pl where it constructs the command line to call
Inkscape to do it's thing:
tilesGen.pl(1201): $Config{Inkscape},
In this case you can't use double quotes in the conf setting (e.g
Inkscape=C:\Program Files\Inkscape\inkscape.exe) or you get the
following error
The following command produced an error message:
""C:\Program Files\Inkscape\inkscape.exe"" -z -w 256 -h 256
--export-area=0.000000:0.000000:878.9
10000:874.412471
--export-png="C:\tiles_at_home\temp\2772\2772_part-rHMP44.png"
"C:\tiles_at_home\te
mp\output-2772-z12.svg" > C:\tiles_at_home\temp\2772-cSW3RD.stdout
Debug output follows:
| '""C:\Program' is not recognized as an internal or external command,
| operable program or batch file.
My quick dirty work around to get myself rendering was to create a 2nd
Inkscape entry in the conf file (eg Inkscape1), have one with double
quotes and one without and reference them where required.
I'm afraid my perl skills are not up to fixing this.
In terms of the other conf settings that contain paths under windows,
what's working for me is no double quotes on the working dir and double
quotes on everything else but not all my paths have spaces in them so
have not tested all possibilities. I can do if someone wants me to.
Sorry if I'm posting to the wrong place, was not sure if I should be
going to trac somewhere or the Usability Reports page in the wiki. Let
me know and I will cross-post if required.
Cheers
rcr
More information about the Tilesathome
mailing list