[packagekit] Mime types checking

Daniel Nicoletti dantti85-pk at yahoo.com.br
Thu Jun 4 06:15:23 PDT 2009


BTW, how the gui will handle that? do we refuse the file
before, or we try to install and the backend give us an error?
I prefer the first, since the user don't need to enter root pass

Daniel.



----- Mensagem original ----
De: Richard Hughes <hughsient at gmail.com>
Para: PackageKit users and developers list <packagekit at lists.freedesktop.org>
Enviadas: Quinta-feira, 4 de Junho de 2009 8:20:05
Assunto: [packagekit] Mime types checking

The daemon now checks the content type of files being passed to the
InstallFiles() method. If your backend does not specify a list of
content types in backend_get_mime_types(), then the file will be
refused and the method will fail with MimeTypeNotSupported. A typical
list of mime-types looks like this:
"application/x-rpm;application/x-servicepack".
This stops users using pkcon, or double clicking on .deb files on a
.rpm system (and vice versa) only for the backend to show an error or
explode into a million bits.

If you want to see the mime-type, as detected by gio (and thus
packagekitd), then do:

gvfs-info /path/to/file.foo -a "standard::content-type"

Please can you ensure that your backend has the correct content types
listed. Thanks.

Richard.
_______________________________________________
PackageKit mailing list
PackageKit at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/packagekit



      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com



More information about the PackageKit mailing list