diff -Naur live-0.2.0.org/grab.cpp live-0.2.0/grab.cpp --- live-0.2.0.org/grab.cpp 2007-05-29 11:50:21.000000000 -0400 +++ live-0.2.0/grab.cpp 2008-10-14 12:04:10.000000000 -0400 @@ -44,6 +44,19 @@ bool GrabImageTask::GrabImage() { + FILE *fp; + char cw_system[10]; + strcpy(cw_system,""); /* clear filename */ + if ((fp = fopen("/var/state/video", "r")) != NULL) { + fgets(cw_system, 10, fp); + fclose(fp); + } + if(strstr(cw_system, "xxmc")) { + SetError( tr("System is using xxmc") ); + return false; + } + + cDevice* device = cDevice::PrimaryDevice(); if ( device == 0 ) { SetError( tr("Couldn't aquire primary device") );