Will Thompson
5ca9eca632
gdesktopappinfo: add get_string_list() function
...
The X-Flatpak-RenamedFrom key is used in .desktop files to identify past
names for the desktop file. It is defined to be a list of strings.
However, there was previously no correct way to retrieve a list of
strings from the GKeyFile wrapped by GDesktopAppInfo, short of
re-parsing the file with GKeyFile.
Note that doing something like:
g_strsplit (g_desktop_app_info_get_string (...), ";", -1)
is not correct: the raw value "a\;b;" represents the one-element list
["a;b"], but g_key_file_get_string() rejects the sequence "\;", and so
g_desktop_app_info_get_string() returns NULL in this case. (Of course, a
.desktop file with a semicolon in its name is a pathological case.)
Add g_desktop_app_info_get_string_list(), a trivial wrapper around
g_key_file_get_string_list(), similar to g_desktop_app_info_get_string()
and co.
The change from g_key_file_free() to g_key_file_unref() in the test is
needed because g_key_file_free() clears the contents of the keyfile.
This is fine for all the fields which are eagerly loaded and copied into
GDesktopAppInfo, but not when we want to access arbitrary stuff from the
keyfile.
2018-10-01 20:03:55 +01:00
..
2015-08-29 08:43:29 -05:00
2017-07-13 19:03:39 -04:00
2018-04-26 16:03:39 +02:00
2018-02-21 13:57:10 +00:00
2018-02-21 10:56:31 +00:00
2017-10-11 10:22:23 +01:00
2012-12-28 21:28:28 -05:00
2013-10-24 13:55:33 -04:00
2014-01-01 17:59:20 -05:00
2018-09-03 13:55:57 +10:00
2015-06-10 21:59:28 -04:00
2013-07-11 13:49:20 -04:00
2013-11-23 22:21:29 -05:00
2018-01-08 16:28:34 +01:00
2018-10-01 20:03:55 +01:00
2017-08-23 11:26:57 +01:00
2014-09-09 14:11:38 -04:00
2015-08-31 13:59:48 -04:00
2013-09-29 17:48:40 -04:00
2015-02-23 10:40:40 -05:00
2014-01-01 22:01:15 -05:00
2013-01-16 10:17:15 -05:00
2013-12-15 21:07:12 -05:00
2017-05-29 19:53:34 +02:00
2017-11-03 12:04:33 +00:00
2016-04-26 15:20:16 +02:00
2015-08-31 13:59:48 -04:00
2014-06-28 14:06:36 -04:00
2018-02-16 17:38:26 +00:00
2018-09-04 20:24:25 +02:00
2018-06-29 12:13:32 +01:00
2017-10-11 12:56:11 +01:00
2017-07-13 19:03:39 -04:00
2018-06-29 12:13:32 +01:00
2012-10-16 09:39:24 -04:00
2018-06-29 12:13:32 +01:00
2018-04-26 15:19:17 +01:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2018-06-29 12:13:32 +01:00
2017-11-01 12:46:38 +00:00
2015-05-11 20:24:56 +01:00
2018-06-14 00:43:28 +02:00
2011-12-08 18:05:15 -05:00
2012-10-16 09:39:24 -04:00
2012-01-25 16:15:18 -05:00
2018-01-03 11:08:37 +00:00
2012-10-16 09:39:24 -04:00
2018-06-09 02:40:01 +08:00
2018-06-13 11:01:56 +01:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2018-07-05 13:13:59 +01:00
2018-04-27 16:46:19 +01:00
2017-05-29 19:53:34 +02:00
2012-10-16 09:39:24 -04:00
2017-05-29 19:53:34 +02:00
2017-04-10 10:38:31 +01:00
2013-05-31 23:12:15 -04:00
2013-05-31 23:12:15 -04:00
2012-10-16 09:39:24 -04:00
2018-07-09 13:28:02 +02:00
2017-04-10 10:38:31 +01:00
2012-10-16 09:39:24 -04:00
2013-05-21 11:23:22 -03:00
2018-07-09 13:28:02 +02:00
2012-10-16 09:39:24 -04:00
2012-10-16 09:39:24 -04:00
2017-05-29 19:53:34 +02:00
2018-07-05 13:14:22 +01:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2018-06-29 12:13:32 +01:00
2018-06-29 12:13:32 +01:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-10-26 12:01:05 +01:00
2018-06-09 02:40:01 +08:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2018-01-01 17:23:23 +00:00
2013-05-31 23:12:15 -04:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2013-01-03 13:14:26 -05:00
2018-01-09 13:10:38 +00:00
2018-08-16 15:55:51 -04:00
2018-05-22 14:34:17 +05:30
2015-07-23 04:22:59 -04:00
2014-01-13 16:12:31 -05:00
2018-09-05 11:36:13 +01:00
2017-12-18 18:56:35 +00:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2018-08-19 20:04:41 +02:00
2018-04-26 15:19:17 +01:00
2018-08-13 15:38:34 +01:00
2017-08-03 10:21:13 +01:00
2018-08-27 17:08:47 +02:00
2018-09-03 13:55:57 +10:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-09-11 22:14:18 +01:00
2016-07-11 17:42:41 -04:00
2015-02-17 16:27:46 -05:00
2018-06-07 06:38:23 +01:00
2018-09-03 13:55:57 +10:00
2013-06-02 01:44:49 -04:00
2013-12-15 21:07:12 -05:00
2018-09-03 13:55:57 +10:00
2014-04-15 11:36:39 -04:00
2018-06-07 00:38:07 +08:00
2018-06-21 15:32:04 +02:00
2018-04-13 17:42:58 +01:00
2018-04-11 15:45:10 +01:00
2018-04-10 10:35:45 +01:00
2011-11-17 14:03:39 +00:00
2013-07-14 11:36:45 -04:00
2018-06-22 22:02:31 +03:00
2018-06-22 22:02:31 +03:00
2012-10-16 09:39:24 -04:00
2018-04-26 15:19:17 +01:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2015-08-31 13:59:48 -04:00
2017-05-29 19:53:34 +02:00
2013-01-14 23:31:59 -05:00
2018-08-13 15:38:34 +01:00
2018-04-27 16:46:19 +01:00
2017-05-29 19:53:34 +02:00
2018-06-29 12:13:32 +01:00
2018-09-04 20:24:25 +02:00
2015-10-13 15:42:14 +01:00
2018-04-27 16:46:19 +01:00
2012-02-03 12:58:53 -05:00
2017-05-29 19:53:34 +02:00
2012-10-16 09:39:24 -04:00
2017-05-29 19:53:34 +02:00
2018-04-13 16:14:46 +01:00
2012-10-16 09:39:24 -04:00
2017-05-29 19:53:34 +02:00
2018-06-29 12:13:32 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2012-01-13 17:12:53 +01:00
2017-11-28 14:28:49 +00:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2017-11-29 17:50:27 +00:00
2017-05-29 19:53:34 +02:00
2016-06-04 08:24:22 -04:00
2018-06-17 11:26:32 +08:00
2015-04-22 18:56:50 +08:00
2017-05-29 19:53:34 +02:00
2018-09-03 13:55:57 +10:00
2017-05-29 19:53:34 +02:00
2018-08-13 17:41:59 +01:00
2012-12-12 15:20:22 +01:00
2018-06-20 12:16:34 +01:00
2018-06-29 12:13:32 +01:00
2016-06-28 15:57:49 +02:00
2012-10-16 09:39:24 -04:00
2014-08-02 12:41:14 +00:00