{"id":1265,"date":"2021-09-19T18:24:46","date_gmt":"2021-09-19T18:24:46","guid":{"rendered":"https:\/\/fluentreports.com\/blog\/?p=1265"},"modified":"2021-09-19T18:33:22","modified_gmt":"2021-09-19T18:33:22","slug":"quickly-adding-desktop-menu-files","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=1265","title":{"rendered":"Quickly adding .desktop menu files"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">For those who use Linux with a Gui, you may be like me and haven't found a good way to create .desktop files for any new applications you downloaded.     I googled and tried many stackoverflow posts, and found <a href=\"https:\/\/gitlab.gnome.org\/GNOME\/alacarte\">Alacarte<\/a> which allows you to edit menu items and re-org your menu.    But never found anything that I could use from the CLI. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This weekend I spent a couple hours and build a simple tool called \"desktopmenuitem\".<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It allows me to do this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/sidequest-1.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"1612\" height=\"570\" src=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/sidequest-1.gif\" alt=\"\" class=\"wp-image-1267\"\/><\/a><figcaption>Animated adding of a new .desktop file<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Basically you can just run it and point it at the executable and it does the rest.   However, it does allow you to change up a lot of items from the cli.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" src=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/image-11-1024x572.png\" alt=\"\" class=\"wp-image-1269\" srcset=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/image-11-1024x572.png 1024w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/image-11-300x167.png 300w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/image-11-768x429.png 768w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/image-11-624x348.png 624w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2021\/09\/image-11.png 1512w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Hopefully this helps others.   You can install it via npm;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>npm i -g @master.technology\/desktopmenuitem<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">and the repo for the source code and issues is here: <a href=\"https:\/\/github.com\/master-technology\/desktop-menuitem\">https:\/\/github.com\/master-technology\/desktop-menuitem<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For those who use Linux with a Gui, you may be like me and haven't found a good way to create .desktop files for any new applications you downloaded. I googled and tried many stackoverflow posts, and found Alacarte which allows you to edit menu items and re-org your menu. But never found anything that&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=1265\">Continue reading <span class=\"screen-reader-text\">Quickly adding .desktop menu files<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1265","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1265"}],"version-history":[{"count":3,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1265\/revisions"}],"predecessor-version":[{"id":1271,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1265\/revisions\/1271"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}