kdesu

Matthias Kretz kretz at kde.org
Sun Nov 18 18:15:10 GMT 2007


On Sunday 18 November 2007, John Tapsell wrote:
> Hey all,
>
>   Can we have a class 'kdesu'  that lets you use kdesu simply?  So
> just move most of the code in kdebase/runtime/kdesu  into a class in
> kdelibs/kdesu.
>   So then apps can do:    KDESu::RunCommand("ls");      or something
> similar.

What about this one?
http://api.kde.org/4.0-api/kdelibs-apidocs/kdesu/html/classKDESu_1_1KDEsuClient.html#9e63e4ee2d380f2d907bbcdd03ea7cb2
Did you try it? Is the kdesu lib actually used anywhere?

>   Also, in kde4 it seems difficult for bash scripts to run kdesu now,
> because it's a libexec program.  In a bash script, how should a
> program run a libexec program?

"`kde4-config --path libexec`kdesu"

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071118/9a45cf13/attachment.sig>


More information about the kde-core-devel mailing list