Enlightenment CVS committal

Author  : davemds
Project : e17
Module  : proto

Dir     : e17/proto/edje_editor/src/bin


Modified Files:
        callbacks.c 


Log Message:
Check for edje_viewer before running it.

===================================================================
RCS file: /cvs/e/e17/proto/edje_editor/src/bin/callbacks.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- callbacks.c 23 May 2007 01:06:23 -0000      1.20
+++ callbacks.c 2 Jul 2007 23:48:30 -0000       1.21
@@ -105,7 +105,10 @@
          {
             snprintf(cmd,1024,"edje_viewer %s &",Cur.open_file_name);
             printf("TEST IN VIEWER. cmd: %s\n",cmd);
-            system(cmd);
+            if (!system("type edje_viewer"))
+               system(cmd);
+            else
+               ShowAlert("<b>Could not find 'edje_viewer'.</b><br>Check that 
the executable is in your path.");
          }else{
             ShowAlert("You need to save the file before testing it.");
          }



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to