RStudio not launching in xfce (ubuntu 18.04)

Solution 1:

Go to the terminal and run the following command:

QMLSCENE_DEVICE=softwarecontext rstudio

This worked for me. Inspiration: https://github.com/rstudio/rstudio/issues/3382#issuecomment-416659732.