https://bugs.kde.org/show_bug.cgi?id=417197

            Bug ID: 417197
           Summary: Allow more fine-tuning of --version (or adding new
                    options)
           Product: frameworks-kdelibs4support
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: sheve...@gmail.com
  Target Milestone: ---

This is a slight feature request, or rather, a change.

As-is situation:

We can usek

"kf5-config --version"

to find out the version of KDE5.

On my system, this command produces these results:

"QStandardPaths: wrong ownership on runtime directory /home/Temp, 99 instead of
0
QStandardPaths: wrong ownership on runtime directory /home/Temp, 99 instead of
0
QStandardPaths: wrong ownership on runtime directory /home/Temp, 99 instead of
0
Qt: 5.14.0
KDE Frameworks: 5.66.0
kf5-config: 1.0"

So 6 lines, split at a newline each.

The first three can be ignored, although in many cases I have no need for it to
tell me that there is a "wrong" ownership - it is not really relevant to me,
but this is besides the point.

The problem I have is that the --version flag returns 3 results. Most of the
time, though, I am only interested in the second line aka KDE Frameworks.

I use this in a ruby script to find out the version of programs on the local
computer system in general.

I do NOT suggest to change the current default - if people like it and rely on
it, that is fine. What I do, however had, suggest is to fine-tune the above,
and in particular allow a new commandline flag that will only return the
version string ode KDE Frameworks, such as:

"kf5-config --kde-frameworks-version"
"kf5-config --kdeframeworks-version"
"kf5-config --frameworks-version"

^^^ or something like this, and the returned string be:

5.66.0

To reduce downstream processing.

It is not a big deal because I can adapt the ruby code either
way, but a minor problem is that querying via kf5-config takes
a little time; it is a bit slower than, say, "grep --version".

So one goal of this is to make the above a bit faster, since
I would not need to determine the qt-version or anything
else. (Perhaps this may be the wrong application to file for,
but which other commandline variant can tell us the version 
of KDE on the computer system? I am fine with an approximation
by the way, no need to query all components from the commandline;
or I just write a ruby script that does so, but right now
I am more focused on a simple one-version solution).

Thanks for reading and considering - it has a very low priority
so I added it to the wishlist. On the other hand, I believe
this is not so difficult to add.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to