神刀安全网

How To Get A Global Menu In Xubuntu 16.04 Or Lubuntu 16.04 (Using TopMenu)

TopMenu (a global menu for MATE, Xfce and LXDE panels) is available in the official Ubuntu 16.04 repositories and it works great in Ubuntu MATE 16.04, but it doesn’t work in Xubuntu 16.04 and Lubuntu 16.04 by simply installing the panel applet package.

Here’s how to get TopMenu to work in Xubuntu 16.04 and Lubuntu 16.04, using the official packages, with a minor tweak.

Note that TopMenu only works with GTK2 and GTK3 applications. It doesn’t work for Qt (4 or 5) applications as well as LibreOffice, Firefox andThunderbird.

How to install and get TopMenu to work in Xubuntu 16.04

How To Get A Global Menu In Xubuntu 16.04 Or Lubuntu 16.04 (Using TopMenu)

1. Install all the required packages

The TopMenu Xfce panel applet package doesn’t depend on all the packages required for it to work. To install all the required packages in Xubuntu 16.04, use the command below:

sudo apt install xfce4-topmenu-plugin libtopmenu-client-gtk2-0 libtopmenu-server-gtk2-0 libtopmenu-client-gtk3-0 libtopmenu-server-gtk3-0 topmenu-gtk2 topmenu-gtk3

2. Load TopMenu via /etc/profile.d/

The next step is to create a file, let’s call it "topmenu-gtk.sh", in /etc/profile.d/ – I’ll use Mousepad (the default Xubuntu 16.04 text editor) below to open an empty file at that location:

pkexec mousepad /etc/profile.d/topmenu-gtk.sh

And in this file, paste the following:

#!/bin/sh export GTK_MODULES=$GTK_MODULES:topmenu-gtk-module

Then save the file and restart the session (logout/login or restart the system).

3. Add TopMenu to the Xubuntu 16.04 Xfce panel

To add TopMenu to the Xfce panel, right click the panel, select Panel > Panel Preferences and on the "Items" tab, click "+" and add TopMenu, then use the up and down arrows to move the applet to the desired location:

How To Get A Global Menu In Xubuntu 16.04 Or Lubuntu 16.04 (Using TopMenu)

It’s important to mention that TopMenu doesn’t support panel transparency so if you want Topmenu to have the same backgound as the rest of the panel, set the Xfce panel opacity to 100 by right clicking on the panel and selecting Panel > Panel Preferences , on the Appearance tab (set "Alpha" to 100):

How To Get A Global Menu In Xubuntu 16.04 Or Lubuntu 16.04 (Using TopMenu)

How to install and get TopMenu to work in Lubuntu 16.04

How To Get A Global Menu In Xubuntu 16.04 Or Lubuntu 16.04 (Using TopMenu)

1. Install all the required packages

Just like the Xfce panel applet, installing the LXDE TopMenu panel applet doesn’t install all the packages required for the applet to work, so let’s install them:

sudo apt install lxpanel-plugin-topmenu libtopmenu-client-gtk2-0 libtopmenu-server-gtk2-0 libtopmenu-client-gtk3-0 libtopmenu-server-gtk3-0 topmenu-gtk2 topmenu-gtk3

2. Load TopMenu via /etc/profile.d/

The next step is to create a file, let’s call it "topmenu-gtk.sh", in /etc/profile.d/ – I’ll use Leafpad (the default Lubuntu 16.04 text editor) below to open an empty file at that location:

gksu leafpad /etc/profile.d/topmenu-gtk.sh

And in this file, paste the following:

#!/bin/sh export GTK_MODULES=$GTK_MODULES:topmenu-gtk-module

Then save the file and restart the session (logout/login or restart the system).

3. Add TopMenu to the Lubuntu 16.04 LXDE panel

Top add Topmenu to the LXDE panel, right click the panel, select "Add / Remove Panel Items", click "Add" and select TopMenu:

How To Get A Global Menu In Xubuntu 16.04 Or Lubuntu 16.04 (Using TopMenu)

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » How To Get A Global Menu In Xubuntu 16.04 Or Lubuntu 16.04 (Using TopMenu)

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址