----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/119315/ -----------------------------------------------------------
Review request for Plasma. Repository: plasma-workspace Description ------- this enables applications (such as the about-distro kcm) to list the version of plasma the user is running at runtime in a somewhat reliable manner, short of having a library function. Diffs ----- plasma.desktop.cmake f0b203e77d215f5afa04a6794e8ab69993ab4987 Diff: https://git.reviewboard.kde.org/r/119315/diff/ Testing ------- read version... example code for reading: const QStringList &filePaths = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, "xsessions/plasma.desktop"); if (filePaths.length() < 1) { return QString(); } // Despite the fact that there can be multiple desktop files we simply take // the first one as users usually don't have xsessions/ in their $HOME // data location, so the first match should (usually) be the only one and // reflect the plasma session run. KDesktopFile desktopFile(filePaths.first()); return desktopFile.desktopGroup().readEntry("X-KDE-PluginInfo-Version", QString()); Thanks, Harald Sitter
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel