Added -b UNIQUEID to both .desktop and to pnd_app_exec() -- why don't these two thing...
authorskeezix <skeezix@flotsam-vm.(none)>
Wed, 1 Apr 2009 13:55:10 +0000 (09:55 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Wed, 1 Apr 2009 13:55:10 +0000 (09:55 -0400)
Added /usr/bin/nohup to .desktop
Need to figure out when to use -x to pnd_run to kill X11

lib/pnd_apps.c
lib/pnd_desktop.c
testdata/pndsample/x86_echo.pnd
testdata/pndsample/x86_ls.pnd

index 4a2cf94..d2d2ce6 100644 (file)
@@ -57,10 +57,10 @@ unsigned char pnd_apps_exec ( char *pndrun, char *fullpath, char *unique_id,
     argv [ f++ ] = "-s";
     argv [ f++ ] = rel_startdir;
   }
-  // skip -a (arguments) for now
+  argv [ f++ ] = "-b";
+  argv [ f++ ] = unique_id;
 
-  //argv [ f++ ] = "-b";
-  //argv [ f++ ] = baename;
+  // skip -a (arguments) for now
 
   if ( options & PND_EXEC_OPTION_NOUNION ) {
     argv [ f++ ] = "-n"; // no union for now
index 0868629..0c91c74 100644 (file)
@@ -84,9 +84,11 @@ unsigned char pnd_emit_dotdesktop ( char *targetpath, char *pndrun, pnd_disco_t
 
     // basics
     if ( p -> object_type == pnd_object_type_directory ) {
-      snprintf ( buffer, 1020, "Exec=%s -p %s -e %s -n", pndrun, p -> object_path, p -> exec );
+      snprintf ( buffer, 1020, "Exec=/usr/bin/nohup %s -p %s -e %s -b %s -n",
+                pndrun, p -> object_path, p -> exec, p -> unique_id );
     } else if ( p -> object_type == pnd_object_type_pnd ) {
-      snprintf ( buffer, 1020, "Exec=%s -p %s/%s -e %s -n", pndrun, p -> object_path, p -> object_filename, p -> exec );
+      snprintf ( buffer, 1020, "Exec=/usr/bin/nohup %s -p %s/%s -e %s -b %s -n",
+                pndrun, p -> object_path, p -> object_filename, p -> exec, p -> unique_id );
     }
 
     // start dir
index d3891db..1bddde2 100644 (file)
Binary files a/testdata/pndsample/x86_echo.pnd and b/testdata/pndsample/x86_echo.pnd differ
index 1cc6c85..db323e1 100644 (file)
Binary files a/testdata/pndsample/x86_ls.pnd and b/testdata/pndsample/x86_ls.pnd differ