Program name / start command

Felipe Alfaro Solana felipe.alfaro at gmail.com
Mon Oct 23 23:42:32 UTC 2006


On 10/23/06, SteVe Cook <yorvik.ubunto at googlemail.com> wrote:
> Is there an easy way to find the command to to start a program?

Try running:

$ APP="Firefox Web Browser"; awk 'BEGIN { a=0 } /Name='"${APP}"'/ {
a=1 } /Exec/ && a==1 { print $0; a=0 }'
/usr/share/applications/*desktop
Exec=firefox %u

So, in this case, you can use firefox.

If you substitute "Firefox Web Browser" for the name that appears on
your Ubuntu menu, eventually you will be able to find the name of the
executable.

HTH.


>
>
> SteVe
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list