On how to get rid of Systemcall here?
It seems hard to use gunzip without -c (decompress to sdout) and get the
temp files correctly.
Maybe using some script trick as Angus's?
string const unzipFile(string const & zipped_file)
{
string const file = ChangeExtension(zipped_file, string());
string const tempfile = lyx::tempName(string(), file);
// Run gunzip
string const command = "gunzip -c " + zipped_file + " > " + tempfile;
Systemcall one;
one.startscript(Systemcall::Wait, command);
// test that command was executed successfully (anon)
// yes, please do. (Lgb)
return tempfile;
}
Alfredo