Add a marker to rewritten desktop files

Add X-Flatpak=true to rewritten desktop files.
Desktop files have multiple consumers, and this
makes it easier for them to know what to do.
tingping/wmclass
Matthias Clasen 2017-05-08 08:23:01 -04:00 committed by Alexander Larsson
parent b6ffa5aecb
commit 66e91f55e8
1 changed files with 3 additions and 0 deletions

View File

@ -3388,6 +3388,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_boolean (keyfile, "Desktop Entry", "X-Flatpak", TRUE);
}
groups = g_key_file_get_groups (keyfile, NULL);