Esempio n. 1
0
static const char *
fr_command_cfile_get_packages (FrCommand  *comm,
			       const char *mime_type)
{
	if (is_mime_type (mime_type, "application/x-gzip"))
		return PACKAGES ("gzip");
	else if (is_mime_type (mime_type, "application/x-brotli"))
		return PACKAGES ("brotli");
	else if (is_mime_type (mime_type, "application/x-bzip"))
		return PACKAGES ("bzip2");
	else if (is_mime_type (mime_type, "application/x-compress"))
		return PACKAGES ("ncompress");
	else if (is_mime_type (mime_type, "application/x-lzip"))
		return PACKAGES ("lzip");
	else if (is_mime_type (mime_type, "application/x-lzma"))
		return PACKAGES ("lzma");
	else if (is_mime_type (mime_type, "application/x-xz"))
		return PACKAGES ("xz");
	else if (is_mime_type (mime_type, "application/x-lzop"))
		return PACKAGES ("lzop");
	else if (is_mime_type (mime_type, "application/x-rzip"))
		return PACKAGES ("rzip");

	return NULL;
}
Esempio n. 2
0
static const char *
fr_command_7z_get_packages (FrArchive  *archive,
			    const char *mime_type)
{
	if (_g_mime_type_matches (mime_type, "application/x-rar"))
		return PACKAGES ("p7zip,p7zip-rar");
	else if (_g_mime_type_matches (mime_type, "application/zip") || _g_mime_type_matches (mime_type, "application/vnd.ms-cab-compressed"))
		return PACKAGES ("p7zip,p7zip-full");
	else
		return PACKAGES ("p7zip");
}
static const char *
fr_command_unarchiver_get_packages (FrArchive  *archive,
				    const char *mime_type)
{
	return PACKAGES ("unarchiver");
}
Esempio n. 4
0
static const char *
fr_command_zoo_get_packages (FrCommand  *comm,
			     const char *mime_type)
{
	return PACKAGES ("zoo");
}
static const char *
fr_command_unstaff_get_packages (FrCommand  *comm,
			         const char *mime_type)
{
	return PACKAGES ("unstaff");
}
Esempio n. 6
0
static const char *
fr_command_ar_get_packages (FrCommand  *comm,
			    const char *mime_type)
{
	return PACKAGES ("binutils");
}
static const char *
fr_command_jar_get_packages (FrCommand  *comm,
			     const char *mime_type)
{
	return PACKAGES ("zip,unzip");
}
Esempio n. 8
0
static const char *
fr_command_cpio_get_packages (FrArchive  *archive,
			      const char *mime_type)
{
	return PACKAGES ("cpio");
}
Esempio n. 9
0
static const char *
fr_command_lrzip_get_packages (FrArchive  *archive,
			       const char *mime_type)
{
	return PACKAGES ("lrzip");
}
Esempio n. 10
0
static const char *
fr_command_iso_get_packages (FrCommand  *comm,
			     const char *mime_type)
{
	return PACKAGES ("genisoimage");
}