xdg-su: using gnomesu in the generic option if available.

Rex Dieter rdieter at math.unl.edu
Fri Aug 26 14:53:03 UTC 2016

PCMan wrote:

> On Mon, Aug 8, 2016 at 1:11 PM, Simon Lees <sflees at suse.de> wrote:
>> Hi All,
>> I was answering an openSUSE bugtracker question re xdg-su and lxqt and
>> the most sensible solution we came to was modifying xdg-su's behavior
>> when running under a generic DE to use gnomesu or kde-su if they are
>> present so I thought i'd put the idea up for discussion in case anyone
>> objects.
>> For reference currently lxqt doesn't have its own replacement for
>> gnomesu/kde-su (well not one I know of) distro's are also highly
>> unlikely to recommend either of those packages with lxqt as they will
>> bring in uneeded kde or gtk packages but by modifying the generic
>> fallback to atleast check for there existence first a user can then
>> choose to use one of them if they please.
> FYI, LXQt now provides its own tool, lxqt-sudo.
> https://github.com/lxde/lxqt-sudo
> However, I think pkexec is a reasonable fallback.
> Cheers!

There are "reasons(tm)"(1) why xdg-utils doesn't install xdg-su by default, 
though I wouldn't object to adopting patches to improve it either.

My strong recommendation: just use pkexec (or engineer things to use 
policykit natively).

-- Rex

More information about the xdg mailing list