Ubuntu – How to enable global application menu in RStudio

appmenuqtrstudiounity

On Ubuntu 15.04 Unity, how can I enable the global menu bar for the Qt application RStudio?

I found a 12.04 question, which was not solved and did not contain a clue.

(Due to reputation issues, I could not add the RStudio tag).

Best Answer

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:

Enable global application menu with RStudio