Discussion:
xdg-su: using gnomesu in the generic option if available.
Simon Lees
2016-08-08 05:11:53 UTC
Permalink
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.

Cheers
--
Simon Lees (Simotek) http://simotek.net

Emergency Update Team keybase.io/simotek
SUSE Linux Adeliade Australia, UTC+9:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
PCMan
2016-08-08 05:26:01 UTC
Permalink
Post by Simon Lees
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!
Post by Simon Lees
Cheers
--
Simon Lees (Simotek) http://simotek.net
Emergency Update Team keybase.io/simotek
SUSE Linux Adeliade Australia, UTC+9:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
_______________________________________________
xdg mailing list
https://lists.freedesktop.org/mailman/listinfo/xdg
Simon Lees
2016-08-08 05:43:35 UTC
Permalink
Post by PCMan
Post by Simon Lees
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!
Ok as an aside i'll attempt to add detection and support for that.
--
Simon Lees (Simotek) http://simotek.net

Emergency Update Team keybase.io/simotek
SUSE Linux Adeliade Australia, UTC+9:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
Rex Dieter
2016-08-26 14:53:03 UTC
Permalink
Post by PCMan
Post by Simon Lees
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
Simon Lees
2016-08-27 00:12:26 UTC
Permalink
Post by Rex Dieter
Post by PCMan
Post by Simon Lees
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
Coming from a distro where it does, I wrote a patch this week to enable
lxqt support and improve enlightenment support in a couple of places
there are a couple of things I have not implemented yet and that don't
have a generic fallback (xdg-file-dialog, xdg-copy) are these actually
used anywhere? Having mostly used enlightenment + openSUSE for the last
few years which doesn't have a implementation i've never hit an issue
from not having them but maybe other distro's use them more? Once that
issue is sorted (or decided that it can wait) i'll have the patch ready
to push.

Cheers
--
Simon Lees (Simotek) http://simotek.net

Emergency Update Team keybase.io/simotek
SUSE Linux Adeliade Australia, UTC+9:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
Loading...