"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "portal/flatpak-portal.c" between
flatpak-1.8.2.tar.xz and flatpak-1.8.3.tar.xz

About: Flatpak is a Linux application sandboxing and distribution framework.

flatpak-portal.c  (flatpak-1.8.2.tar.xz):flatpak-portal.c  (flatpak-1.8.3.tar.xz)
skipping to change at line 1528 skipping to change at line 1528
lookup_installation_for_path (GFile *path, GError **error) lookup_installation_for_path (GFile *path, GError **error)
{ {
FlatpakInstallation *installation; FlatpakInstallation *installation;
if (installation_cache == NULL) if (installation_cache == NULL)
installation_cache = g_hash_table_new_full (g_file_hash, (GEqualFunc)g_file_ equal, g_object_unref, g_object_unref); installation_cache = g_hash_table_new_full (g_file_hash, (GEqualFunc)g_file_ equal, g_object_unref, g_object_unref);
installation = g_hash_table_lookup (installation_cache, path); installation = g_hash_table_lookup (installation_cache, path);
if (installation == NULL) if (installation == NULL)
{ {
g_autoptr(GError) error = NULL;
g_autoptr(FlatpakDir) dir = NULL; g_autoptr(FlatpakDir) dir = NULL;
dir = flatpak_dir_get_by_path (path); dir = flatpak_dir_get_by_path (path);
installation = flatpak_installation_new_for_dir (dir, NULL, &error); installation = flatpak_installation_new_for_dir (dir, NULL, error);
if (installation == NULL) if (installation == NULL)
return NULL; return NULL;
flatpak_installation_set_no_interaction (installation, TRUE); flatpak_installation_set_no_interaction (installation, TRUE);
g_hash_table_insert (installation_cache, g_object_ref (path), installation ); g_hash_table_insert (installation_cache, g_object_ref (path), installation );
} }
return g_object_ref (installation); return g_object_ref (installation);
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)