<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi Beniamino,</p>
<p>thanks, that's very helpful.<br>
</p>
<div class="moz-cite-prefix">On 06.05.24 09:36, Beniamino Galvani wrote:<br>
</div>
<blockquote type="cite" cite="mid:ZjiIcCw4DReRQ4Ae@tp"><span style="white-space: pre-wrap"></span>
<pre class="moz-quote-pre" wrap="">There is a better way: you can use the AddAndActivate2() D-Bus API [1]
and pass as `specific_object` the path of an AP object. NM will
autocomplete the security settings automatically [2]. You only need to
supply a PSK if you are connecting to a WPA-PSK/SAE network. For
reference, you can look at how nmcli does it in [3].

[1] <a class="moz-txt-link-freetext" href="https://networkmanager.dev/docs/api/latest/gdbus-org.freedesktop.NetworkManager.html#gdbus-method-org-freedesktop-NetworkManager.AddAndActivateConnection2">https://networkmanager.dev/docs/api/latest/gdbus-org.freedesktop.NetworkManager.html#gdbus-method-org-freedesktop-NetworkManager.AddAndActivateConnection2</a>
[2] <a class="moz-txt-link-freetext" href="https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.49.0-dev/src/core/devices/wifi/nm-wifi-utils.c#L533">https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.49.0-dev/src/core/devices/wifi/nm-wifi-utils.c#L533</a>
[3] <a class="moz-txt-link-freetext" href="https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.49.0-dev/src/nmcli/devices.c#L3643">https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/1.49.0-dev/src/nmcli/devices.c#L3643</a>
</pre>
</blockquote>
<p>Is there a way to get the same auto-completion feature when adding a new connection profile, but without activating it?</p>
<p>I was thinking of AddConnection2() [4], but it does not allow to pass an AP's path...<br>
</p>
<p>[4] <a class="moz-txt-link-freetext" href="https://networkmanager.dev/docs/api/latest/gdbus-org.freedesktop.NetworkManager.Settings.html#gdbus-method-org-freedesktop-NetworkManager-Settings.AddConnection2">
https://networkmanager.dev/docs/api/latest/gdbus-org.freedesktop.NetworkManager.Settings.html#gdbus-method-org-freedesktop-NetworkManager-Settings.AddConnection2</a><br>
</p>
<table cellspacing="0" cellpadding="0" border="0" style="width: 450px;">
<tbody>
<tr>
<td style="font-family: Arial; font-size: 12pt; color: rgb(68, 84, 106);"><font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);"><b>Adrien Cossa</b></font>
</td>
</tr>
<tr>
<td style="padding-bottom: 20px; font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);">
<font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);">Senior Software Developer</font>
</td>
</tr>
<tr>
<td style="font-family: Arial; font-size: 10pt;"><font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);"><b>Viewpointsystem GmbH</b></font></td>
<td rowspan="3"><img align="top" src="http://sig.viewpointsystem.com/icons.png" width="" height="48"></td>
</tr>
<tr>
<td style="font-family: Arial; font-size: 10pt;"><font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);">Technology Center Seestadt, Bt. 2 Christine-Touaillon-Str. 11 / Top 14, 1220 Vienna, Austria</font></td>
</tr>
<tr>
<td style="font-family: Arial; font-size: 10pt;"><font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);">UID ATU 65189299 | FN 333211t | HG Wien</font></td>
</tr>
<tr>
<td style="padding-top: 20px; font-family: Arial; font-size: 10pt;"><font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);">M | T +43 1 208 90 90</font></td>
</tr>
<tr>
<td style="font-family: Arial; font-size: 10pt;"><font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);"><a href="mailto:a.cossa@viewpointsystem.com" style="color: rgb(68, 84, 106)">a.cossa@viewpointsystem.com</a> |
<a href="https://www.viewpointsystem.com" style="color: rgb(68, 84, 106)">www.viewpointsystem.com</a></font></td>
</tr>
<tr>
<td style="padding-top: 20px; font-family: Arial; font-size: 10pt;"><font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);"><a href="https://viewpointsystem.com/de/datenschutz/">Datenschutzerklaerung
</a></font></td>
</tr>
<tr>
<td style="padding-top: 10px; padding-bottom: 6px;" valign="middle">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td style="padding-right: 5px;"><a href="https://www.xing.com/companies/viewpointsystemgmbh"><img style="display: block" src="http://sig.viewpointsystem.com/xing22_vps.png">
</a></td>
<td style="padding-right: 5px;"><a href="https://www.linkedin.com/company/viewpointsystem-gmbh?trk=prof-following-company-logo"><img style="display: block" src="http://sig.viewpointsystem.com/linkedin22_vps.png">
</a></td>
<td style="padding-right: 5px;"><a href="https://twitter.com/VPS_Eyetracking"><img style="display: block" src="http://sig.viewpointsystem.com/twitter22_vps.png">
</a></td>
<td style="padding-right: 5px;"><a href="https://www.facebook.com/Viewpointsystem-GmbH-382331958771804/"><img style="display: block" src="http://sig.viewpointsystem.com/fb22_vps.png">
</a></td>
<td><a href="https://www.youtube.com/user/viewpointsystem"><img style="display: block" src="http://sig.viewpointsystem.com/youtube22_vps.png">
</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="font-family: Arial; font-size: 10pt; padding-bottom: 6px"><font style="font-family: Arial; font-size: 10pt; color: rgb(68, 84, 106);"><a href="https://viewpointsystem.wetransfer.com" style="color: rgb(68, 84, 106)">https://viewpointsystem.wetransfer.com</a><!--Adding newsletter section-->
<a href="https://seu2.cleverreach.com/f/342259-351488/"><img style="display: block" src="http://sig.viewpointsystem.com/news_eng.jpg" width="" height="80"></a>
</font></td>
</tr>
<tr>
<td style="max-width: 400px; text-align: justify; border-top: 1px solid rgb(169, 169, 169); padding-top: 3px; font-size: 8pt; color: rgb(136, 136, 136);" colspan="2">
<font style="font-family: Arial; font-size: 8pt; color: rgb(68, 84, 106);">This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other
 than the intended addressee is prohibited. If you receive this in error, please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission. The contents of this email and any
 attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this email is received in error, please contact viewpointsystem gmbh nor the name of the sender
 and the email address to which it has been sent and then delete it. Please note that neither viewpointsystem gmbh or the sender accepts any responsibility for viruses - it is your responsibility to scan or otherwise check this email and any attachments.
</font></td>
</tr>
</tbody>
</table>
</body>
</html>