HostOnNet Blog

How to take screenshot while desktop menu is open on Ubuntu

Looking for Linux Server Admin or WordPress Expert? We can help.

On Ubuntu Desktop, you can take a screenshot simply by pressing “Print Screen” key. By default, the key is set to trigger gnome-screenshot program to capture current desktop screen.

However, if you attempt to take a screenshot while any Unity menu or X11 application’s built-in menu is open, you will notice that “Print Screen” key will not respond, so you cannot take a screenshot.

As of Ubuntu Desktop 12.10, Gnome desktop has a bug, where Gnome desktop does not receive keyboard events while any desktop menu is open.

If you would like to take a screenshot when desktop menu is open, what you can do as a workaround is to take a “delayed” screenshot. If you launch gnome-screenshot with “–delay=X” option, it will take a screenshot of desktop screen after X seconds. The delay will give you enough time to open any desktop menu while screenshot is being scheduled to be taken.

In the following, I will show you how to redefine the existing “Print Screen” key shortcut to launch delayed gnome-screenshot.

Go to “System settings” -> “Keyboard”, and click on “Shortcuts” tab.

In order to create a custom shortcut, highlight “Custom Shortcuts” in the left panel, and click on “+” button at the bottom of the right panel. This will pop up a custom shortcut configuration window. At the window, fill in the following info.

Name: Delayed Shortcut
Command: gnome-screenshot –delay=5


Once you have created a new custom shortcut, you will see that the shortcut appears in the right panel, but with “Disabled” status. Click on “Disabled,” and it will change to “New accelerator.” At this point, press “Print Screen” key.

You may see a warning message that says “The shortcut Print is already used.” Just go ahead and re-assign it to your new shortcut. You will see the following screen where “Disabled” has now been changed to “Print” successfully.


Then you should be able to take a screenshot with any open desktop menu. You first press “Print Screen” key, and then open the desktop menu that you want within the next five seconds. The desktop screen with open menu will be captured automatically at a scheduled time.

About sherly

I am Sherly, living in the city of Alappuzha, which known as the 'Venice of the East'.
Posted in Linux, Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.