Configuring a shortcut for LightDM's app launcher
We do it, then we forget
That’s it! I’ve got a new shiny tool that I want to use for my day to day work. It’s so pretty, it has nice features that’ll help me a lot…
But it is not packaged / has a custom installer that’ll create launcher shortcuts /o\ ! (I kinda like to just have to type
and launch my app instead of having to use my mouse). I always forget how to set it up manually so now I’ll
write it down so I (and, hopefuly some readers) don’t have to =)1
<META>+"my app name"+<ENTER>
It’s all about configuration files, really
One of the ways to make this work is in the
directory. LightDM seems to read the contents of
that directory to augment the list of applications it is able to suggest when you type something while in the launcher. Mine looks like this :1
~/.local/share/applications
and a typical
file looks something like this (here a webstorm config file):1
.desktop
This one was actually created automatically when installing webstorm 2016, but the point is that we can basically take that file, copy it, and then edit the name / path / icon / whatever values, and we should almost be good to go (it seens to take a logout / login to get LightDM to reload the configuration)