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

  • Is your .desktop file executable? They have to be. Feb 3 '13 at 14:43
  • 1
    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 ;-) 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? Feb 3 '13 at 17:46
  • 2
    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. Feb 3 '13 at 19:05
  • does is work now? Feb 5 '13 at 13:31

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.

  • This is right. sudo is a terminal program, it doesn't display a dialog. You need to use gksudo or pkexec Jul 1 '13 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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