1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2026-10-24 00:49:00 +03:00
Files
Ignacy Kuchciński f310caad7a gdesktopappinfo: Handle minimal app infos when saving
Currently `g_desktop_app_info_ensure_saved()` assumes that if the object
does not have a filename, it was created with
`g_app_info_create_from_commandline()`, and therefore assumes
`info->exec`, `info->name` and `info->comment` are not NULL.

However, app info could have been also created with
`g_desktop_app_info_new_from_keyfile()`, which does not guarantee any of
those values. This results in failed assertions and broken resulting
filename, if these keys are not set in the key file.

The Name key is required by the Desktop Entry Specification, so make
`g_desktop_app_info_new_from_keyfile()` error out when the name is
missing, and check the remaining values in
`g_desktop_app_info_ensure_saved()`.
2026-10-21 14:43:08 +02:00
..
…
2025-09-03 21:47:11 +02:00
…
2026-07-14 12:42:00 +01:00
2026-07-14 12:42:00 +01:00
2025-09-03 21:47:11 +02:00
…
2025-09-03 21:47:11 +02:00
2025-09-03 21:47:11 +02:00
2025-09-03 21:47:11 +02:00
2026-09-14 10:34:53 -04:00
…
…
…