how to find kdesu?

Harald Sitter sitter at kde.org
Wed Jan 17 12:30:37 UTC 2018


bin/kdesu does not come from us, I guess it's one of those distro
symlink Andreas was talking about
https://build.kde.org/job/Plasma%20kde-cli-tools%20kf5-qt5%20SUSEQt5.9/12/console

On Wed, Jan 17, 2018 at 1:07 PM, Alexey Andreyev
<yetanotherandreyev at gmail.com> wrote:
> Hello!
>
> command: "which kdesu" returns "/usr/bin/kdesu" for my archlinux
> command "readlink -f /usr/bin/kdesu" returns "/usr/lib/kf5/kdesu"
> so maybe "readlink -f `which kdesu`" is what you are searching for?
>
>
>
> 2018-01-17 14:43 GMT+03:00 Harald Sitter <sitter at kde.org>:
>>
>> Moin
>>
>> I am currently trying to invoke kdesu from a script and having some
>> trouble wrapping my head around how to actually find it in the file
>> system.
>>
>> On neon (and all debians) we have it in
>> /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu
>>
>> That is: libexec/kf5 inside the libdir of ECM (I think)
>>
>> Now how do I determine where that is without having to resort to
>> somehow fish that out of cmake (which requires development files to be
>> installed and that is usually not the case on production systems)?
>>
>> In kdelibs4 times we hade kde4-config which has a compat replacement
>> kf5-config in kdelibs4support, but that is deprecated in favor of
>> qtpaths. qtpaths deals with XDG_ paths, not build time paths, or
>> rather: the build time paths it supports are Qt's not
>> KF5's/kde-cli-tools so they are entirely irrelevant for kdesu.
>>
>> Should this bugger maybe be in bin/ rather than libexec/?
>>
>> HS
>
>


More information about the Plasma-devel mailing list