A schematic editor for VLSI/Asic/Analog custom designs, netlist backends for VHDL, Spice and Verilog. The tool is focused on hierarchy and parametric designs, to maximize circuit reuse.
In xschem go to Simulation ->Configure simulators and tools and replace the word ngspice with the full path of the executable as it is installed on your system.
Error when Pressing Simulation button
but in the same terminal I can run the simulation manually with the same command
I don't know why does this happen. If you have an insight.