Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > fa13d35ff3faa4effa226a9e80574c09 > files > 2

R-base-3.1.2-2.mga5.src.rpm

diff -Naur R-2.15.3.orig/src/unix/system.c R-2.15.3/src/unix/system.c
--- R-2.15.3.orig/src/unix/system.c	2012-10-27 00:05:06.000000000 +0200
+++ R-2.15.3/src/unix/system.c	2013-03-02 00:19:07.546486565 +0100
@@ -302,7 +302,11 @@
 #endif
 
 #ifdef HAVE_TCLTK
-    if(useTk) R_GUIType = "Tk";
+    if(useTk) {
+        R_GUIType = "Tk";
+        /* If we are started by a menu, we don't get a tty, but _are_ interactive */
+        R_Interactive = TRUE;
+    }
 #endif
 
     R_common_command_line(&ac, av, Rp);