Desktop Entry Spec : RootRequired entry

Benedikt Meurer benny at xfce.org
Fri Sep 2 16:50:01 EEST 2005


Jasper Huijsmans wrote:
>>>> 3) start normally, root required (e.g. gnome-terminal -e su)
>>>
>>> I think this could be indicated in the description/title. Why should the
>>> menu system care about this?
>>
>>> I don't really see the need for 3). Would you handle that differently
>>> than (1)?
>>
>> If the menu system knows that the user isn't authorized to use the
>> root account, ithe menu system should hide it because it doesn't make
>> sense to show such entry.
> 
> Ok, that would be nice. How can a menu system know this though?

For su it's easy, just check if the user is in the group 'wheel' or
'root' (depending on the system). For sudo it'd require parsing the
sudoers file.

>     Jasper

Benedikt




More information about the xdg mailing list