NetworkManager/examples/python/dbus
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
..
add-connection-compat.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
add-connection.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
add-wifi-eap-connection.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
add-wifi-psk-connection.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
checkpoint.py examples: fix usage of input() with Python2 2021-05-26 18:03:13 +02:00
create-bond.py examples: avoid deprecated PropertiesChanged signal in "create-bond.py" example 2021-05-14 10:53:09 +02:00
disconnect-device.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
get-active-connection-uuids.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
is-wwan-default.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
list-connections.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
list-devices.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-state.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
show-bssids.py examples: minor bugfix comparing device state in "python/dbus/show-bssids.py" 2021-01-26 11:42:46 +01:00
update-ip4-method.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
update-secrets.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
vpn.py examples: drop confusing UID handling in "vpn.py" example 2021-05-27 00:02:19 +02:00
wifi-active-ap.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
wifi-hotspot.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00