Re: disable auto-connect

On Tue, 2018-01-02 at 21:00 +0100, Belisko Marek wrote:
Hi Thomas,

One more question maybe. When I set some configuration for e.g. wifi
network it is possible to overwrite existing connection

I think I don't understand your question :)

If you have a connection (profile), you can modifiy it. Via libnm API
for example via nm_remote_connection_commit_changes_async().

See also the python examples in
They use libnm via GObject introspection.

Or see what nmcli does:

I tried to use same name for connection but it seems that NM always
create new one with UUID at the end.

It is possible somehow to delete previous configuration (stored in
/etc/NetworkManager/system-connections/? I basically always want to
use only one even user will setup connection to 2 different wifi
networks. I'm using libnm for my program. Thanks.

yes, you can also delete profiles. See the D-Bus API
or libnm API:

most imporantly in this case, the functions on the NMRemoteConnection:


Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]