KICAD_VERSION variable too long on Ubuntu
Description
Current behaviour: ${KICAD_VERSION} returns very long string "kicad 7.0.2-6a45011f42~172~ubuntu23.04.1"
Expected behaviour: ${KICAD_VERSION} returns shortened string, for example "kicad 7.0.2" or "kicad (7.0.2)" (on Windows 10 it has the additional brackets).
The Issue Details: KICAD_VERSION returns very long string which takes a lot of space and doesn't fit in some dedicated version fields (on the above screenshot it's a custom template). The shortened string "kicad (7.0.2)" is displayed on Windows 10 (my work machine) and (based on what KiCAD forum users say) also on some other Linux distributions.
The issue existed with 6.0.10 on Ubuntu and also in earlier 6.0.x versions (cannot remember 5.x).
This is a screenshot from KiCAD 6.0.10 on Windows 10 (expected behaviour):
Solution:
- Another version variable returning a shorten string would be nice.
- Alternatively the existing version variable can be limited to the main version number (7.0.2), removing everything else after that.
Steps to reproduce
- Install KiCAD on Ubuntu from PPA stable releases.
- The ${KICAD_VERSION} variable in the page template returns very long strings as shown above.
KiCad Version
Application: KiCad x86_64 on x86_64
Version: 7.0.2-6a45011f42~172~ubuntu23.04.1, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
Platform: Ubuntu 23.04, 64 bit, Little endian, wxGTK, xubuntu, x11
wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.6.3
Curl: 7.88.1
ngspice: 38
Compiler: GCC 12.2.0 with C++ ABI 1017
Build settings:
KICAD_SPICE=ON