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.

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]
Type=Application
Name=Mathe
Exec=sudo sg - nonet nonetmath
Icon=<iconpath>
Categories=Education;

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
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 ;-) –  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
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. –  André Stannek Feb 3 '13 at 19:05
    
@stonedsquirrel Thanks –  nightcrawler Feb 5 '13 at 9:21

1 Answer 1

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

 
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.