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

Via terminal I can launch application as s particular groupid:

sudo sg - nonet nonetmath

where nonet is the group name & nonetmath is the binary in /bin... Now I want to create a .desktop file for ease of access

[Desktop Entry]
Exec=sudo sg - nonet nonetmath

but this isn't not working...the system is configured such that sudo dont prompt for pswd this was done by editing

sudo visudo

any help here

share|improve this question
Is your .desktop file executable? They have to be. – André Stannek Feb 3 '13 at 14:43
There also is a [ missing in the first line of your file. I'm guessing it's a typo that happened while posting here, but I thought I better mention it ;-) – André Stannek Feb 3 '13 at 14:48
Thnx, it was a typo while posting here. Problem isn't yet solved guys? I can perfectly run command in terminal why not via .desktop file? – nightcrawler Feb 3 '13 at 17:46
Did you check if the file is executable? You should also use desktop-file-validate on your file to check if it has any errors. – André Stannek Feb 3 '13 at 19:05
@stonedsquirrel Thanks – nightcrawler Feb 5 '13 at 9:21

Not sure if it's the same problem, but I can never make my .desktop files or launchers work with sudo. I click on them and nothing happens. When I change it to gksudo, however, they work fine.

share|improve this answer
This is right. sudo is a terminal program, it doesn't display a dialog. You need to use gksudo or pkexec – andrewsomething Jul 1 '13 at 18:50

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.