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

_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg

Reply via email to