kio_giobridge IO slave

Alexander Larsson alexl at redhat.com
Thu Jan 3 12:34:26 GMT 2008


On Thu, 2008-01-03 at 03:35 +0100, nf2 wrote: 
> Over the Christmas holidays i have written an experimental kio_gio/gvfs
> bridge IO slave for KDE4:

Cool. A couple of issues on the gio side:

In gFileInfo2UDSEntry, you're using the access::can-read (etc)
attributes to set the file mode. In cases where the backend is actually
a unix like filesystem you can use unix::mode
(G_FILE_ATTRIBUTE_UNIX_MODE) instead. 

You can't set attributes like CAN_READ and CAN_WRITE. These are
calculated in backend specific ways. For instance, on local files that
is done using access() which is affected by things like ACLs in addition
to the unix modes. And on some backends the rights work in completely
different ways. 

Same for setting OWNER_USER and OWNER_GROUP. These are calculated by the
backend, and you need to set the actual backing value (like UNIX_UID and
UNIX_GID). 



More information about the kde-core-devel mailing list