Differences between revisions 2 and 3
Revision 2 as of 2021-11-29 15:19:09
Size: 884
Editor: stroth
Comment: Add X11 forwarding as an example where this is necessary
Revision 3 as of 2021-11-29 15:25:20
Size: 1118
Editor: stroth
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
This does not work if RStudio is started in a VNC session or when using X11 forwarding. RStudio will not start and display an error messages like the following: This does not work if RStudio is started in a VNC session<<FootNote([[RemoteAccess/VNC|Remote access to a Linux host's desktop with VNC]])>> or when using X11 forwarding<<FootNote([[FAQ/X11macOS|Forward X11 applications to a macOS client]])>> <<FootNote([[FAQ/X11Windows|Forward X11 applications to a Windows client]])>>. RStudio will not start and display an error messages like the following:

Using RStudio in a VNC session

Rstudio per default wants to use a GPU for rendering. Disabling this by setting the following environment variable before starting rstudio is recommended as a solution to similar problems:

export RSTUDIO_CHROMIUM_ARGUMENTS='--disable-gpu'

This does not work if RStudio is started in a VNC session1 or when using X11 forwarding2 3. RStudio will not start and display an error messages like the following:

WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.

To use RStudio in a VNC session, add the line desktop.renderingEngine=software below the section [General] to the file $HOME/.config/RStudio/desktop.ini.
The file might then look something like this:

[General]
cookies=@Invalid()
desktop.renderingEngine=software

[mainwindow]
geometry=@ByteArray(...

FAQ/RStudio (last edited 2021-11-29 15:25:59 by stroth)