Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.