List Applications (.desktop) to pick up for example with dmenu
- Simple call with out params returns all defined apps in
/usr/share/applications
/usr/local/share/applications - You can extend it with other directories of course
- A call with a app name returns the exec part of .desktop
#!/bin/bash
title="Apps:"
app=$(lapps | dmenu -i -c -p "$title" -l 15)
[[ -z "$app" ]] && exit
echo $app
exec $(lapps "$app")- Together with dmenu as app launcher for all the apps defined
in .desktop-files
