Skip to content
Prev 13565 / 63421 Next

Problem with R --gui=GNOME when launched from a menu system

On Tue, 2004-08-31 at 08:55, Dirk Eddelbuettel wrote:
FWIW, no default change in behavior here under XFCE4 when using the run
dialog or in a desktop menu with the above source change.

However, if I run 'xfrun4' (which is the XFCE4 run app dialog) from a
console and then run the R GNOME/GUI command in the dialog, it now
works. So it would seem that a controlling console is required.

Supporting that notion, if I use the following command in a bash script:

gnome-terminal -e "R --gui=GNOME --no-save"

then the R GNOME/GUI runs properly when I click on the script in ROX.

The same thing if I use that script file in the desktop run application
dialog, either directly by name or use the actual command in the dialog
window.

I changed the source file above back to the original setting and this
does not impact the use of the above script. It still works.

The downside to the above is of course an open terminal window on the
desktop.

I tried some combinations of redirecting stdout/stderr, for example:

R --gui=GNOME --no-save 1>/dev/null 2>&1

or 

R --gui=GNOME --no-save 1>stdout.txt 2>stderr.txt


but this does not appear to be a solution. The window still clears.


HTH,

Marc