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

1
<META>+"my app name"+<ENTER>
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 =)

Ooooh! Shiny!

It’s all about configuration files, really

One of the ways to make this work is in the

1
~/.local/share/applications
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 :

-rw-rw-r-- 1 hoshin  346 april  4  14:56 defaults.list
-rw------- 1 hoshin  259 march  12 12:00 jetbrains-webstorm.desktop
-rw-rw-r-- 1 hoshin 1,7K may    24 10:00 mimeinfo.cache
-rw-rw-r-- 1 hoshin  272 april  5  10:43 wine-extension-application.desktop
[...]
-rw-rw-r-- 1 hoshin  258 april  5  10:47 wine-extension-xsl.desktop

and a typical

1
.desktop
file looks something like this (here a webstorm config file):

[Desktop Entry]
Version=1.0
Type=Application
Name=WebStorm
Icon=/home/hoshin/Webstorm/bin/webstorm.svg
Exec="/home/hoshin/Webstorm/bin/webstorm.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-webstorm

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)

Martin Bahier

Martin Bahier
Software Craftsman during the day, gamer at night. Or both, depends on my mood

Ubuntu / Debian and NodeJS : why the odd naming?

# Why doesn't nodejs Debian package provide the "node" binary used by all my tools?Recently, I had to use my CI to host a new node projec...… Continue reading

zypper behind bars ... well behind proxies

Published on August 07, 2016

PhantomJS trouble

Published on July 24, 2016