[Lazarus] How to get superuser rights

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Jul 28 09:59:22 CEST 2010


On Wed, 28 Jul 2010 02:02:08 +0200
KrisztiƔn Nagy <nkrisztian89 at gmail.com> wrote:

> Hi Lazarus list,
> 
> I've got a simple question. I'm writing a little app with lazarus for linux
> which executes some terminal commands through fpSystem().
> I need superuser rights for this so my question is that how can I acquire
> them in a lazarus app (in a visual way)? In other apps here the screen fades
> a bit and a dialog appears asking for the password (this is from the
> OS/display manager and not from the app itself). Where do I find the API for
> this?
> (I can workaround the issue in some ugly ways but I would be pleased to find
> the clear solution)
> I'm using ubuntu 10.04 with gnome.
> Thanks in advance!

Maybe gksudo can help.

Mattias




More information about the Lazarus mailing list