{"id":527,"date":"2017-05-07T22:48:04","date_gmt":"2017-05-07T20:48:04","guid":{"rendered":"http:\/\/itso.dk\/?p=527"},"modified":"2017-05-07T22:54:07","modified_gmt":"2017-05-07T20:54:07","slug":"linux-adding-launchermenu-shortcut","status":"publish","type":"post","link":"https:\/\/blog.itso.dk\/?p=527","title":{"rendered":"Adding launcher\/menu shortcut to Linux"},"content":{"rendered":"<p>Sometimes you want a shortcut in\/on the desktop launcher of your DE.<\/p>\n<p>This is pretty simple, create a .desktop file with entry as shown below.<\/p>\n<p>Remember, you must have the [Desktop Entry], Name, Exec, Type. If it is a script with some kind of interaction, select Terminal=True.<\/p>\n<p>It can also be a good idea to select: Categories.<\/p>\n<p>Here is my Unity.desktop file with the following content, adjust to whare your application\/script and icon location:<\/p>\n<pre>[Desktop Entry]\r\nVersion=0.0.0f0\r\nName=Unity\r\nExec=\/opt\/Unity\/Editor\/Unity %F\r\nExec=\/opt\/Unity\/Editor\/Unity %U\r\nIcon=\/opt\/Unity\/unity-editor-icon.png\r\nTerminal=false\r\nType=Application\r\nStartupNotify=true\r\nCategories=Development;IDE;Application;\r\nMimeType=x-scheme-handler\/com.unity3d.kharma;<\/pre>\n<p>Next, if you want shortcut for current copy file to:<\/p>\n<pre>~\/.local\/share\/applications<\/pre>\n<p>Or if you want it for all users, copy file to:<\/p>\n<pre>\/usr\/share\/applications<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you want a shortcut in\/on the desktop launcher of your DE. This is pretty simple, create a .desktop file with entry as shown below. Remember, you must have the [Desktop Entry], Name, Exec, Type. If it is a script with some kind of interaction, select Terminal=True. It can also be a good idea to &#8230;<\/p>\n<p><a href=\"https:\/\/blog.itso.dk\/?p=527\" class=\"more-link\">Continue reading &lsquo;Adding launcher\/menu shortcut to Linux&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":528,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-tip"],"_links":{"self":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=527"}],"version-history":[{"count":4,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions\/532"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=\/wp\/v2\/media\/528"}],"wp:attachment":[{"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.itso.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}