Shows desktop entry and exec; accepts '*' in search.
USAGE: appfinder [search]
Code: Select all
#!/bin/sh
VAR="$(find /usr/share/applications | grep -i "$1")"
echo "$VAR"
EXEC="$(cat "$VAR" | grep Exec | cut -d"=" -f2)"
LOC="$(which "$EXEC")"
echo "$LOC"