NetworkManager/examples/python
Thomas Haller f1a1921edc
examples: drop confusing UID handling in "vpn.py" example
First of all, the "os.setuid()" call is never reached. lgtm.com warns about
that, and warnings are annoying because they require investigation.

This code is only in the example, so that the user would understand that
they should edit the source and set the desired UID. But you can only
call setuid() if you have CAP_SETUID, so commonly this anyway doesn't
work -- unless you are root already, and then you actually don't need
it either.

Let's drop this code from the example.

Maybe this example really should be dropped. Does the "dbus" python
module even still work? Doesn't for me...
2021-05-27 00:02:19 +02:00
..
dbus examples: drop confusing UID handling in "vpn.py" example 2021-05-27 00:02:19 +02:00
gi examples: use python3 compatible exception syntax 2021-03-16 07:55:12 +01:00
python-networkmanager build: merge "examples/Makefile.am" into toplevel Makefile 2016-10-21 17:37:57 +02:00