On Thu, 18 Aug 2022 17:18:28 -0400, Jeff Layman <Je...@invalid.invalid> wrote:
> When I tried that, no path appeared. For example, looking for the path
> for the game "Mines":
> jeff@jeff-P15xEMx:~$ whereis Mines
> Mines:
> jeff@jeff-P15xEMx:~$
>
> Is the path hidden in some way?
The whereis command is only useful if you already know the file name.
For example
$ whereis kmines
kmines: /usr/bin/kmines /usr/share/kmines
or
$ whereis gnome-mines
gnome-mines: /usr/bin/gnome-mines /usr/share/gnome-mines /usr/share/man/man6/gnome-mines.6.xz
Menu entries usually have a .desktop file in /usr/share/applications/
though other places may be used.
My preferred method of searching for a file by partial name uses tree and grep.
$ tree -ifa /usr/share/applications/|grep -i mines
/usr/share/applications/org.gnome.Mines.desktop
/usr/share/applications/org.kde.kmines.desktop
To find the executable, look at the Exec line in the desktop file
$ grep ^Exec /usr/share/applications/org.gnome.Mines.desktop
Exec=gnome-mines
Exec=gnome-mines --small
Exec=gnome-mines --medium
Exec=gnome-mines --big
$ grep ^Exec /usr/share/applications/org.kde.kmines.desktop
Exec=kmines -qwindowtitle %c
Regards, Dave Hodgins