简体   繁体   中英

Rstudio opens blank on user but works fine with sudo

I have a new archlinux installation and got rstudio-desktop-bin from AUR, as the project site says to. However, I get a blank screen (as below) when trying to open it. When using

sudo /usr/bin/rstudio-bin

It opens normally. I tried to reset rstudio from this tutorial https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State

and in this question, the problem was solved changing file permission. Both did not work for me.

What could I do?

Rstudio when opening normally:

在此处输入图像描述

I found a suggestion that an update to electron may have caused an issue in theRStudio community forums . By disabling sandboxing, they were able to start RStudio as a user and it worked for me:

/usr/bin/rstudio-bin --no-sandbox

To make more permanent until the problem is resolved you can add a line to your.bashrc (or equivalent in another shell):

export RSTUDIO_CHROMIUM_ARGUMENTS="--no-sandbox"

There is also a suggestion in there about building from a weekly source instead. But this was easier for me so I can't vouch for it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM