Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release-src > by-pkgid > c887067f425bea68abfcff8fe4fde862 > files > 2

R-base-3.3.3-2.mga6.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);