KiCad 7 can't open the schematic or pcb editor

Try removing the v5 personal config files as mentioned here:

The config directory for various OSes is stated in the Getting Started document as the directory where the personal library tables are stored: Getting Started in KiCad | 7.0 | English | Documentation | KiCad