Merge lp:~mterry/update-notifier/pkexec into lp:update-notifier/ubuntu
Proposed by
Michael Terry
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 770 |
Merged at revision: | 780 |
Proposed branch: | lp:~mterry/update-notifier/pkexec |
Merge into: | lp:update-notifier/ubuntu |
Diff against target: |
223 lines (+58/-28) 9 files modified
data/Makefile.am (+6/-1) data/backend_helper.py (+16/-20) data/cddistupgrader (+1/-1) data/com.ubuntu.update-notifier.policy.in (+19/-0) debian/changelog (+8/-0) debian/control (+2/-3) debian/update-notifier-common.install (+1/-0) po/POTFILES.in (+1/-0) src/cdroms.c (+4/-3) |
To merge this branch: | bzr merge lp:~mterry/update-notifier/pkexec |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson | Approve | ||
Review via email: mp+146003@code.launchpad.net |
Description of the change
Finally drops gksu from the default install. Last holdout was backend_helper.py which used it for synaptic. But synaptic ships synaptic-pkexec which is a good replacement.
The last user of gksu is in cddistupgrader. But that only pulls gksu in as a Suggests on update-
To post a comment you must log in.
> -GKSU = ["/usr/bin/gksu"] applications/ synaptic. desktop" ,
> -SYNPATIC_DESKTOP = ["--desktop",
> - "/usr/share/
> - "--"]
> +SUDO = ["/usr/bin/pkexec"]
If you're renaming the variable, call it PKEXEC, please, or at least
something that isn't the name of another tool. It's rather confusing
otherwise.
> === modified file 'data/cddistupg rader' /"$CODENAME" --cdrom "$CDROM_MOUNT" /"$CODENAME" --cdrom "$CDROM_MOUNT"
> --- data/cddistupgrader 2013-01-31 14:13:55 +0000
> +++ data/cddistupgrader 2013-01-31 23:13:25 +0000
> @@ -28,4 +28,4 @@
> done
>
> # run it
> -gksu -- "$TMPDIR"
> +pkexec "$TMPDIR"
I don't think this works for cddistupgrader, because the upgrader is
going to want to talk to the X server and pkexec doesn't allow that by
default.
I was considering shipping a polkit action file for cddistupgrader
itself and executing the whole lot under pkexec, which might be simpler
to arrange ...