Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-10

Running and debugging application via gksu

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner

I'm needing to elevate my application and the easiest way to do it is to start off the program with gksu. I've explored the Run menu with options but fail to get Lazarus to start my application via gksu when I hit "Run" inside the IDE.

Anyone know how to get Lazarus to pass all these options to the command line during "Run" but start off with gksu? I really don't want to run Lazaruse IDE as root using gksu (but if i do, I get the desired effect). The problem with running Lazarus as root is the units get assigned as root when they are saved :-)

Any help is greatly appreciated.

Reply by email

Mattias Gaertner
to Andrew Brunner
Show quoted text 12 lines
I'm needing to elevate my application and the easiest way to do it is to start off the program with gksu. I've explored the Run menu with options but fail to get Lazarus to start my application via gksu when I hit "Run" inside the IDE. Anyone know how to get Lazarus to pass all these options to the command line during "Run" but start off with gksu? I really don't want to run Lazaruse IDE as root using gksu (but if i do, I get the desired effect). The problem with running Lazarus as root is the units get assigned as root when they are saved :-) Any help is greatly appreciated.

You can run the project via gksu with the 'launching application'. But afaik the IDE debugger does not yet support this. So your project is only executed but without debugger support.

You can of course debug via command line:

sudo gdb ./yourproject

Or run the IDE as root.

Mattias

Reply by email