export: Store the app id in the X-Flatpak key

We need this, because it may not correspond 100% to
the desktop file id, as flatpak allows suffixes if you
want multiple desktop files in one app.
This commit is contained in:
Alexander Larsson
2017-05-24 12:02:42 +02:00
parent 71408adbb3
commit e75cff6bb5

View File

@@ -3582,7 +3582,7 @@ export_desktop_file (const char *app,
}
/* Add a marker so consumers can easily find out that this launches a sandbox */
g_key_file_set_boolean (keyfile, "Desktop Entry", "X-Flatpak", TRUE);
g_key_file_set_string (keyfile, "Desktop Entry", "X-Flatpak", app);
}
groups = g_key_file_get_groups (keyfile, NULL);