Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hello I am going to make certain application which requires root privileges to run. I am using quickly for that application. How to use sudo , gksudo or anything else for that application to run?

share|improve this question
    
Use of sudo would be Highly Recommended. –  atenz Jun 25 '12 at 13:15
    
But I want to use it via my GUI –  gau1991 Jun 25 '12 at 13:40
    
Policy Kit or GkSudo –  RobinJ Jun 26 '12 at 14:00

1 Answer 1

up vote 2 down vote accepted

In the .desktop file you can putgksudo yourprogram or you can write a script that will launch your program using gksudo (maybe a bash script).

Edit: You can also write the portion of code that needs root separately and run it as a seperate process using gksudo when you need it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.