Improve handling of unrecognized files (lp:#1828237)
Original report created by Jon Evans (craftyjon)
It is possible to send "wrong" files to KiCad apps via the command line.
See: https://bugs.launchpad.net/kicad/+bug/1390561
Another user recently reported the same thing:
They were trying to open a PCB via command line, and did `kicad
<filename.kicad_pcb>` instead of `pcbnew <filename.kicad_pcb>`
The KiCad project manager does not handle this well (spits out a confusing
parser error)
We should at least give a slightly better error here "This doesn't look
like a KiCad project file" or something like that. We could also go beyond
that and (a) either recognize other KiCad file types and alert the user to
how to open them, or (b) just directly launch the relevant KiCad program
and pass the desired file to it.