Re: Network Manager does not find system wide connections



Dan Williams wrote:
>
>
> You'll want to start looking in the keyfile's
> system-settings/plugins/keyfile/plugin.c dir_changed() function.  That
> function is called whenever inotify sees new files or changes in the
> config directory.  Does that function get called when the new file
> appears there?  Since the new keyfile appears at all, I assume that
> means the keyfile plugin is loaded (otherwise nothing would get written
> to that directory in the first place).
>
> Eventually this code will be triggered in dir_chagned():
>
> 			/* New */
> 			connection = nm_keyfile_connection_new (name);
> 			if (connection) {
> 				NMConnection *tmp;
> 				NMSettingConnection *s_con;
> 				const char *connection_uuid;
> 				NMKeyfileConnection *found = NULL;
>
>
>   


Nope, dir_changed() is not called at all, neither at restart of the
nm-system-settings daemon, nor when a new file appears.


regards
Hadmut



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