remote connections 'unsaved' property changes after save() to disk

2016-10-28 Thread Enrico Joerns

Hi,

I tried to rely on the result of nm_remote_connection_get_unsaved() to 
determine whether a remote connection was saved to disk or not.
If I only save a connection, the status of 'unsaved' becomes false - as 
expected. Unfortunately, if I activate the connection afterwards, the 
status is changed back to 'true', meaning the connection is unsaved now.


Is that the intended behavior of the 'unsaved' property? The 
documentation states that this means the connection changed compared to 
the on-disk representation. Now, the only thing that really changes on 
disk when re-saving the connection is its time stamp..


I followed the code to this snippet in 
src/settings/nm-settings-connection.c:


  connection_changed_cb (NMSettingsConnection *self, gpointer unused)
  {
  set_unsaved (self, TRUE);
  _emit_updated (self, FALSE);
  }

meaning the connection is set to 'unsaved' unconditionally every time 
the connection changes. This also seems to include changes in the 
connections status (active, deactivated, ..) which should be completely 
irrelevant for the on-disk representation.



Could you clarify why nm behaves this way, or if this is a bug. And if 
its intended behavior, do I have a chance to reliably detect whether a 
connection was saved either only 'temporary' or really 'persistent'?



Best regards

Enrico

--
Pengutronix e.K.   | Enrico Jörns|
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [network-manager-openvpn] Problem adding vpn file from my provider FrootVPN.

2016-10-28 Thread Beniamino Galvani
On Thu, Oct 27, 2016 at 08:15:20PM +0200, Vicente Herrera Cobo wrote:
> Regards to all,
> 
> by adding a specified ovpn file from my provider get the following
> error: "Error: configuration error: unsupported blob/xml element (line
> 104)."
> 
> Line 104: ""

Hi,

at the moment the openvpn plugin doesn't support 
profiles. I've filed a bug [1] to track this issue and hopefully
it will be implemented soon (patches are always welcome!).

Beniamino

[1] https://bugzilla.gnome.org/show_bug.cgi?id=773623


signature.asc
Description: PGP signature
___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list