You are not logged in.

#1 2007-05-18 19:07:01

N30N
Member
Registered: 2007-04-08
Posts: 273

How do you make a .Desktop entry run as root?

I know in KDE you add "X-KDE-Username=root" but what do you need to add for Gnome users (there's nothing in the desktop-entry-spec sad)? So is there a setting for it or do I need to make a script to run the command with gksudo/kdesu depending on the desktop environment?

TIA wink

Offline

#2 2007-05-18 19:56:11

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: How do you make a .Desktop entry run as root?

i just put on Exec something like that
Exec=gksu -u root /path/to/application      it requires root password
Exec=gksudo /path/to/application      if i want to use my password/no password depends on the way i setup sudoers

Last edited by wonder (2007-05-18 19:56:33)


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB