<div><div>Justin, thanks a lot, this really helped, I hope the field naming when running kinfo doesn't change in future versions.</div><div> </div><div>Best regards,</div><div> </div><div>Daniel</div></div><div><p> </p></div><div>----------------</div><div>Кому: kde-devel@kde.org (kde-devel@kde.org);</div><div>Тема: Determining KDE Version for Script Compatibility;</div><div>05.03.2025, 05:57, "Justin Zobel" <justin@1707.io>:</div><blockquote><div style="padding-bottom:1px"><p>The 'kinfo' command which is part of the 'kinfocenter' package *should* be pre-installed on any Plasma install can give you the following info. This includes 'KDE Plasma Version: 6.3.80' which you can use to determine what version of Plasma they are running. Alternatively, if the OS is all the same, look at the package info. For example "dnf list --installed | grep ^plasma-desktop.x86_64"</p><p>kinfo<br />Operating System: KDE Linux 202503040256<br />KDE Plasma Version: 6.3.80<br />KDE Frameworks Version: 6.12.0<br />Qt Version: 6.8.2<br />Kernel Version: 6.13.5-arch1-1 (64-bit)<br />Graphics Platform: Wayland<br />Processors: 16 x AMD Ryzen 7 PRO 4750U with Radeon Graphics<br />Memory: 32 GiB of RAM (29.1 GiB usable)<br />Graphics Processor: AMD Radeon Graphics</p><p>Justin</p><div>On 3/5/25 00:15, Данила Скачедубов wrote:</div><blockquote><div><div><div><div><p>Dear KDE Community,</p><p>I hope this message finds you well. I am writing to seek advice on determining the KDE version programmatically in my Python scripts.</p><p>In my scripts, I have been using the <code>kwriteconfig5</code> command to configure KDE settings. However, with the release of KDE 6, the binary name has changed to <code>kwriteconfig6</code>. Since my scripts run on various versions of KDE, I need a reliable way to determine the installed KDE version without relying on session environment variables.</p><p>I am wondering if there is a method using D-Bus or a configuration file that stores this information. Any guidance or suggestions on how to achieve this would be greatly appreciated.</p><p>Thank you for your time and assistance.</p><p>Best regards,</p><p>Daniel</p></div></div></div></div></blockquote></div></blockquote>