{"componentChunkName":"component---node-modules-gatsby-theme-blog-core-src-templates-post-query-js","path":"/quicktip-create-app-launchers-in-ubuntu-17-10/","result":{"data":{"site":{"siteMetadata":{"title":"one melo a day","social":[{"name":"twitter","url":"https://twitter.com/melo0187"},{"name":"github","url":"https://github.com/melo0187"}]}},"blogPost":{"__typename":"MdxBlogPost","id":"a4bbc0e9-2bd1-5bd9-aca8-729924f9df05","excerpt":"I finally managed to update my system to Ubuntu 17.10. After doing that I wanted to install  TeamSpeak 3 , which does not come in a .deb…","body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"layout\": \"post\",\n  \"title\": \"Quicktip: Create app launchers in Ubuntu 17.10\",\n  \"author\": \"melo\",\n  \"date\": \"2017-12-31T15:03:42.000Z\",\n  \"categories\": [\"Linux\", \"Aside\", \"Technical\"],\n  \"slug\": \"quicktip-create-app-launchers-in-ubuntu-17-10\",\n  \"draft\": false,\n  \"meta_title\": \"Quicktip: Create app launchers in Ubuntu 17.10\"\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"I finally managed to update my system to Ubuntu 17.10. After doing that I wanted to install \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://www.teamspeak.com/teamspeak3\"\n  }), \"TeamSpeak 3\"), \", which does not come in a .deb file nor is it available through a PPA. While installing and launching it from the cli is straight forward, I wanted to have a launcher for it, so I could start it from Ubuntu 17.10\\u2019s application menu like any other app.\"), mdx(\"p\", null, \"After not being satisfied with what Google search brought up (all I found suggested to install \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://github.com/GNOME/alacarte\"\n  }), \"alacarte\"), \") I did dig a little deeper. What I found is that all you really need to do is to create a .desktop file in \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"~/.local/share/applications\"), \" with a specific format.\", mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", \"Check the format\", mdx(\"sup\", _extends({\n    parentName: \"p\"\n  }, {\n    \"id\": \"fnref-1\"\n  }), mdx(\"a\", _extends({\n    parentName: \"sup\"\n  }, {\n    \"href\": \"#fn-1\",\n    \"className\": \"footnote-ref\"\n  }), \"1\")), \" based on my TeamSpeak 3 launcher:\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-shell\"\n  }), \"#!/usr/bin/env xdg-open\\n[Desktop Entry]\\nVersion=3\\nTerminal=false\\nType=Application\\nName=TeamSpeak 3\\nExec=/home/melo/Downloads/Apps/TeamSpeak3-Client-linux_amd64/ts3client_runscript.sh\\nIcon=/home/melo/Downloads/Apps/TeamSpeak3-Client-linux_amd64/teamspeak_small.png\\nStartupWMClass=ts3client_linux_amd64\\n\")), mdx(\"p\", null, \"Now just double-click the .desktop file and your application will launch and show up in the left dock (where you can add it to favorites, too).\"), mdx(\"div\", {\n    \"className\": \"footnotes\"\n  }, mdx(\"hr\", {\n    parentName: \"div\"\n  }), mdx(\"ol\", {\n    parentName: \"div\"\n  }, mdx(\"li\", _extends({\n    parentName: \"ol\"\n  }, {\n    \"id\": \"fn-1\"\n  }), \"StartupWMClass does not seem to be mandatory (details can be found \", mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"https://askubuntu.com/questions/367396/what-represent-the-startupwmclass-field-of-a-desktop-file\"\n  }), \"here\"), \").\", mdx(\"a\", _extends({\n    parentName: \"li\"\n  }, {\n    \"href\": \"#fnref-1\",\n    \"className\": \"footnote-backref\"\n  }), \"\\u21A9\")))));\n}\n;\nMDXContent.isMDXComponent = true;","slug":"/quicktip-create-app-launchers-in-ubuntu-17-10/","title":"Quicktip: Create app launchers in Ubuntu 17.10","tags":[],"keywords":[],"date":"December 31, 2017"},"previous":{"__typename":"MdxBlogPost","id":"9b9ecf8f-33f4-589d-b078-ed291093181a","excerpt":"How I used Docker to package the CF java-buildpack in minutes","slug":"/package-java-buildpack-with-docker/","title":"Package Cloud Foundry java-buildpack with Docker","date":"November 26, 2017"},"next":{"__typename":"MdxBlogPost","id":"7d4033a3-490f-5fa6-9f7f-6f1fb8d3a4bc","excerpt":"How to restart your Cloud Foundry deployed apps without downtine","slug":"/restart-cf-apps-without-downtime/","title":"Gradual restart for Cloud Foundry  apps","date":"January 21, 2018"}},"pageContext":{"isCreatedByStatefulCreatePages":false,"id":"a4bbc0e9-2bd1-5bd9-aca8-729924f9df05","previousId":"9b9ecf8f-33f4-589d-b078-ed291093181a","nextId":"7d4033a3-490f-5fa6-9f7f-6f1fb8d3a4bc"}}}