mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-10 09:57:34 -04:00
Add a marker to rewritten desktop files
Add X-Flatpak=$app to rewritten desktop files. Desktop files have multiple consumers, and this makes it easier for them to know what to do. (cherry picked from commit66e91f55e8ande75cff6bb5)
This commit is contained in:
committed by
Alexander Larsson
parent
d6af6b72c8
commit
5e82a7b11a
@@ -3113,6 +3113,9 @@ export_desktop_file (const char *app,
|
||||
"X-Flatpak-Tags",
|
||||
(const char * const *) tags, length);
|
||||
}
|
||||
|
||||
/* Add a marker so consumers can easily find out that this launches a sandbox */
|
||||
g_key_file_set_string (keyfile, "Desktop Entry", "X-Flatpak", app);
|
||||
}
|
||||
|
||||
groups = g_key_file_get_groups (keyfile, NULL);
|
||||
|
||||
Reference in New Issue
Block a user