Change file extension for installations configuration files to '.conf'

The old '.install' one was probably too specific, so let's move it to
a more generic (and common) extension before making the release.
tingping/wmclass
Mario Sanchez Prada 2016-12-19 11:49:20 +00:00 committed by Alexander Larsson
parent 507e4dd355
commit b704c385c8
1 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@
#define SUMMARY_CACHE_TIMEOUT_SEC 5*60
#define SYSCONF_INSTALLATIONS_DIR FLATPAK_CONFIGDIR "/installations.d"
#define SYSCONF_INSTALLATIONS_FILE_EXT ".conf"
#define SYSTEM_DIR_DEFAULT_ID "default"
#define SYSTEM_DIR_DEFAULT_DISPLAY_NAME "Default system directory"
@ -473,7 +474,7 @@ system_locations_from_configuration (GCancellable *cancellable,
name = g_file_info_get_attribute_byte_string (file_info, "standard::name");
type = g_file_info_get_attribute_uint32 (file_info, "standard::type");
if (type == G_FILE_TYPE_REGULAR && g_str_has_suffix (name, ".install"))
if (type == G_FILE_TYPE_REGULAR && g_str_has_suffix (name, SYSCONF_INSTALLATIONS_FILE_EXT))
{
g_autofree char *path_str = g_file_get_path (path);
if (!append_locations_from_config_file (locations, path_str, cancellable, error))