lib: Fix handling of X-Flatpak-RenamedFrom desktop file keys
A variable was being initialised self-referentially, which broke handling of the X-Flatpak-RenamedFrom key. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://phabricator.endlessm.com/T24004
This commit is contained in:
parent
5d7e4d0b08
commit
6d03097512
|
@ -303,7 +303,7 @@ epc_app_filter_is_appinfo_allowed (EpcAppFilter *filter,
|
||||||
|
|
||||||
for (gsize i = 0; old_flatpak_apps[i] != NULL; i++)
|
for (gsize i = 0; old_flatpak_apps[i] != NULL; i++)
|
||||||
{
|
{
|
||||||
gchar *old_flatpak_app = g_strstrip (old_flatpak_app);
|
gchar *old_flatpak_app = g_strstrip (old_flatpak_apps[i]);
|
||||||
|
|
||||||
if (g_str_has_suffix (old_flatpak_app, ".desktop"))
|
if (g_str_has_suffix (old_flatpak_app, ".desktop"))
|
||||||
old_flatpak_app[strlen (old_flatpak_app) - strlen (".desktop")] = '\0';
|
old_flatpak_app[strlen (old_flatpak_app) - strlen (".desktop")] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue