{"id":1131,"date":"2021-09-10T05:29:29","date_gmt":"2021-09-10T04:29:29","guid":{"rendered":"https:\/\/pmortensen.eu\/world2\/?p=1131"},"modified":"2026-06-14T17:25:23","modified_gmt":"2026-06-14T16:25:23","slug":"taking-a-screenshot-of-a-menu-in-cinnamon-linux","status":"publish","type":"post","link":"https:\/\/pmortensen.eu\/world2\/2021\/09\/10\/taking-a-screenshot-of-a-menu-in-cinnamon-linux\/","title":{"rendered":"Taking a screenshot of a menu in Cinnamon (Linux)"},"content":{"rendered":"<p>The normal method of taking a screenshot in Linux (in Cinnamon, at least) <strong><em>does not work<\/em><\/strong> while selecting a menu command is in progress. Example from selecting menu <em>\u201cSheet\u201d<\/em> &rarr; <em>\u201cFill Cells\u201d<\/em> &rarr; <em>\u201cFill Series\u201d<\/em> in <a href=\"https:\/\/en.wikipedia.org\/wiki\/LibreOffice\">LibreOffice<\/a>:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries-300x268.png\" alt=\"\" width=\"300\" height=\"268\" class=\"alignnone size-medium wp-image-1132\" srcset=\"https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries-300x268.png 300w, https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries-768x685.png 768w, https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries-100x89.png 100w, https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries-150x134.png 150w, https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries-200x178.png 200w, https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries-450x402.png 450w, https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries-600x535.png 600w, https:\/\/pmortensen.eu\/world2\/wp-content\/uploads\/2021\/09\/LibreOffice_menuSheet_FillCells_FillSeries.png 901w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>All keyboard input, including <a href=\"https:\/\/pmortensen.eu\/world2\/2021\/03\/02\/krita-on-linux-as-the-equivalent-to-windows-paint\/#TakingA_Screenshot\">the key combinations for taking screenshots<\/a> and <kbd>Alt<\/kbd> + <kbd>Tab<\/kbd> to switch to another application, are <strong><em>completely blocked<\/em><\/strong> while menus are open.<\/p>\n<h1>Solution<\/h1>\n<p>A solution is to delay the screenshot a number of seconds, giving enough time to select the menu command. <a href=\"https:\/\/en.wikipedia.org\/wiki\/ImageMagick\">ImageMagick&#8217;s<\/a> <a href=\"https:\/\/imagemagick.org\/script\/import.php\">&#8216;import&#8217;<\/a> command, which is installed by default on <a href=\"https:\/\/en.wikipedia.org\/wiki\/Ubuntu_MATE#Releases\">Ubuntu&nbsp;MATE&nbsp;20.04<\/a> (Focal Fossa), is one such program that can do this.<\/p>\n<p>Synthesising the required options from the documentation is non-trivial (for instance, &#8220;-delay&#8221; does not do anywhere near what is expected and <a href=\"https:\/\/imagemagick.org\/script\/command-line-options.php#pause_import_\">&#8220;-pause&#8221;<\/a> needs to be combined with &#8220;-window&#8221; (see below)), but the solution is:<\/p>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\nimport -pause 10 -window root  someScreenshotWithAMenu2.png\r\n<\/pre>\n<p>The result is in file someScreenshotWithAMenu2.png and can further be <a href=\"https:\/\/pmortensen.eu\/world2\/2021\/03\/02\/krita-on-linux-as-the-equivalent-to-windows-paint\/\">manipulated in e.g. Krita<\/a> (as this will capture the entire screen &#8211; both screens if on a two-monitor system).<\/p>\n<p>Note: Without <em>&#8220;-window root&#8221;<\/em> the error message is <em>&#8220;import-im6.q16: unable to grab mouse `&#8217;: No such file or directory @ error\/xwindow.c\/XSelectWindow\/9187.&#8221;<\/em> and nothing is saved.<\/p>\n<h1>Alternatives<\/h1>\n<p>The built-in application &#8220;Screenshot&#8221; in Debian\/Ubuntu\/<a href=\"https:\/\/en.wikipedia.org\/wiki\/Ubuntu_MATE#Releases\">Ubuntu&nbsp;MATE&nbsp;20.04<\/a> (Focal Fossa) (Win + &#8220;screen&#8221; &rarr; &#8220;Screenshot&#8221;) can also delay the screenshot for a number of seconds. The option is <em>&#8220;Grab after a delay of&#8221;<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The normal method of taking a screenshot in Linux (in Cinnamon, at least) does not work while selecting a menu command is in progress. Example from selecting menu \u201cSheet\u201d &rarr; \u201cFill Cells\u201d &rarr; \u201cFill Series\u201d in LibreOffice: All keyboard input, &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/pmortensen.eu\/world2\/2021\/09\/10\/taking-a-screenshot-of-a-menu-in-cinnamon-linux\/\"> <span class=\"screen-reader-text\">Taking a screenshot of a menu in Cinnamon (Linux)<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,45,23],"tags":[],"_links":{"self":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/1131"}],"collection":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/comments?post=1131"}],"version-history":[{"count":12,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/1131\/revisions"}],"predecessor-version":[{"id":1146,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/posts\/1131\/revisions\/1146"}],"wp:attachment":[{"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/media?parent=1131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/categories?post=1131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pmortensen.eu\/world2\/wp-json\/wp\/v2\/tags?post=1131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}