"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/flatpak-builtins-utils.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-builtins-utils.c  (flatpak-1.8.2.tar.xz):flatpak-builtins-utils.c  (flatpak-1.8.3.tar.xz)
skipping to change at line 1086 skipping to change at line 1086
AsApp * AsApp *
as_store_find_app (AsStore *store, as_store_find_app (AsStore *store,
const char *ref) const char *ref)
{ {
g_autoptr(FlatpakRef) rref = flatpak_ref_parse (ref, NULL); g_autoptr(FlatpakRef) rref = flatpak_ref_parse (ref, NULL);
const char *appid = flatpak_ref_get_name (rref); const char *appid = flatpak_ref_get_name (rref);
g_autofree char *desktopid = g_strconcat (appid, ".desktop", NULL); g_autofree char *desktopid = g_strconcat (appid, ".desktop", NULL);
int j; int j;
g_debug ("Looking for AsApp for '%s'", ref);
for (j = 0; j < 2; j++) for (j = 0; j < 2; j++)
{ {
const char *id = j == 0 ? appid : desktopid; const char *id = j == 0 ? appid : desktopid;
g_autoptr(GPtrArray) apps = as_store_get_apps_by_id (store, id); g_autoptr(GPtrArray) apps = as_store_get_apps_by_id (store, id);
int i; int i;
g_debug ("sifting through %d apps for %s", apps->len, id);
for (i = 0; i < apps->len; i++) for (i = 0; i < apps->len; i++)
{ {
AsApp *app = g_ptr_array_index (apps, i); AsApp *app = g_ptr_array_index (apps, i);
AsBundle *bundle = as_app_get_bundle_default (app); AsBundle *bundle = as_app_get_bundle_default (app);
if (bundle && if (bundle &&
#if AS_CHECK_VERSION (0, 5, 15) #if AS_CHECK_VERSION (0, 5, 15)
as_bundle_get_kind (bundle) == AS_BUNDLE_KIND_FLATPAK && as_bundle_get_kind (bundle) == AS_BUNDLE_KIND_FLATPAK &&
#endif #endif
g_str_equal (as_bundle_get_id (bundle), ref)) g_str_equal (as_bundle_get_id (bundle), ref))
return app; return app;
 End of changes. 2 change blocks. 
3 lines changed or deleted 0 lines changed or added

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