#1077913 gnome-remote-desktop: grdctl requires pkexec which is missing from Depends

#1077913#5
Date:
2024-08-04 11:45:55 UTC
From:
To:
Dear Maintainer,

After having installed gnome-core in a minimal VM I started to
configure gnome-remote-desktop on the console per

  grdctl --system rdp set-credentials "user" "password"

which only returned

  Failed to start the configuration of the system daemon: Failed to execute child process “pkexec” (No such file or directory)

Looking into the source code [1] revealed grdctl indeed calls pkexec.

Not sure whether pkexec should be added to Depends or whether one
should replace it with runuser.

Regards,
Sven

[1] https://sources.debian.org/src/gnome-remote-desktop/46.3-4/src/grd-ctl.c/?hl=937#L937

#1077913#10
Date:
2024-08-04 13:49:00 UTC
From:
To:
elevates privileges to root (or maybe swaps to a system uid), then runuser
is not a solution, because runuser can only be run by root. If that's the
design, then a privilege elevation tool is needed (pkexec, sudo, doas or
similar), of which pkexec is the most desktop-integrated.

If grdctl is sometimes but not always required, then Recommends: or
Suggests: pkexec would be another option.

(I haven't kept up with how recent versions of g-r-d work, so I don't have
the context to say authoritatively how it's meant to work and which parts
of it are a hard requirement.)

    smcv