diff --git a/src/notes.txt b/src/notes.txt
index 168bd18407be62c6a76b30fa1b87243fb0930595..ea8ed631d312e76b6330751c5b7816c96ccb0873 100644
--- a/src/notes.txt
+++ b/src/notes.txt
@@ -13,6 +13,7 @@ mac:
 Gnome: why don't windows pop up when clicked on?
 
 problems:
+find asdf$1 (e.g.) doesn't work
 check real-time gaps in writesf~
 fix declare to update current patch when changed
 objects on GOP don't erase if you edit the GOP while they're showing
diff --git a/src/t_tkcmd.c b/src/t_tkcmd.c
index c32dc346be34f0d4a0ca476ec29ea564c52abdfb..bd6ff5a5d3bcda2a856691875eecec3b53770d14 100644
--- a/src/t_tkcmd.c
+++ b/src/t_tkcmd.c
@@ -420,6 +420,7 @@ static void pd_startfromgui( void)
 #endif
 
 #ifdef UNISTD
+    sprintf(cmdbuf, "\"%s\" -guiport %d\n", pdbuf, portno);
     childpid = fork();
     if (childpid < 0)
     {
@@ -429,7 +430,6 @@ static void pd_startfromgui( void)
     }
     else if (!childpid)                 /* we're the child */
     {
-        sprintf(cmdbuf, "\"%s\" -guiport %d\n", pdbuf, portno);
 #ifdef DEBUGCONNECT     
         fprintf(debugfd, "%s", cmdbuf);
         fflush(debugfd);