From e68c13c07ca5182a559796919412dceb537424f2 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Sat, 14 Sep 2013 22:43:03 -0400
Subject: [PATCH] fixed improper window class naming when running pd-l2ork via
 pd-gui with no optional args

---
 pd/src/t_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pd/src/t_main.c b/pd/src/t_main.c
index 6ed972303..d38336674 100644
--- a/pd/src/t_main.c
+++ b/pd/src/t_main.c
@@ -60,6 +60,8 @@ main(int argc, char **argv)
     {
         //specify root window name
         argc--; argv++;
+    } else if (argc == 1) { //if we are running directly from pd-gui with no args
+        argv[0]="pd-l2ork";
     }
     Tk_Main(argc, argv, Tcl_AppInit);
     return 0;                   /* Needed only to prevent compiler warning. */
-- 
GitLab