void SvgSodipodiThread::run()
{
// Runs the sodipodi
	char command[1024];
	char filename_png[1024];
	strcpy(filename_png, client->config.svg_file);
	strcat(filename_png, ".png");

	sprintf(command, "sodipodi --cinelerra-export-file=%s --export-width=%i --export-height=%i %s",
		filename_png, (int)client->config.in_w, (int)client->config.in_h, client->config.svg_file);
	printf(_("Running external SVG editor: %s\n"), command);		
	enable_cancel();
	system(command);
	disable_cancel();
	int result;
	return;
}
Beispiel #2
0
void SvgInkscapeThread::run()
{
// Runs the inkscape
	char command[1024];
	sprintf(command, "inkscape --with-gui %s", client->config.svg_file);
	printf(_("Running external SVG editor: %s\n"), command);

	enable_cancel();
	system(command);
	printf(_("External SVG editor finished\n"));
	struct fifo_struct fifo_buf;
	fifo_buf.pid = getpid();
	fifo_buf.action = 2;
	write (fh_fifo, &fifo_buf, sizeof(fifo_buf));
	disable_cancel();

	return;
}
Beispiel #3
0
void SvgInkscapeThread::run()
{
// Runs the inkscape
	char command[1024];
	char filename_raw[1024];
	strcpy(filename_raw, client->config.svg_file);
	strcat(filename_raw, ".raw");

	sprintf(command, "inkscape --cinelerra-export-file=%s %s",
		filename_raw, client->config.svg_file);
	printf(_("Running external SVG editor: %s\n"), command);		
	enable_cancel();
	system(command);
	printf(_("External SVG editor finished\n"));
	{
		struct fifo_struct fifo_buf;
		fifo_buf.pid = getpid();
		fifo_buf.action = 2;
		write (fh_fifo, &fifo_buf, sizeof(fifo_buf));
	}
	disable_cancel();
	return;
}