[packagekit] Mime types checking
Richard Hughes
hughsient at gmail.com
Thu Jun 4 06:19:33 PDT 2009
On Thu, Jun 4, 2009 at 2:15 PM, Daniel Nicoletti
<dantti85-pk at yahoo.com.br> wrote:
> 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
That's what I did in gnome-packagekit. We first check to see if the
file exists, and is readable, and then we check it's content type. If
all these check succeed, then we pass it to the daemon.
Richard
More information about the PackageKit
mailing list