How to enable global application menu in RStudio?
Solution 1:
edit:
It is reported (see comments), that Ubuntu 16.04 and/or RStudio release 0.99.467 (using Qt5) or later do not support the following solution any more. See also the answer of lyz1990.
I found a solution on the RStudio forum (here). The issue has reported several times (e.g. here and here).
To enable the appmenu-qt
for RStudio, link the qt4 menubar to the rstudio library folder. Run the following commands in a terminal:
cd /usr/lib/rstudio/bin/plugins
sudo ln -s /usr/lib/x86_64-linux-gnu/qt4/plugins/menubar
Then (close and) start rstudio
. This is how it looks like:
Solution 2:
For recent versions of Rstudio with Qt5:
cd /usr/lib/rstudio/bin/plugins/platformthemes
sudo ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/libappmenu-qt5.so libappmenu-qt5.so