Inspiration from Gnome VFS

Stefan Taferner taferner at kde.org
Fri Feb 27 06:18:59 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 27 February 2004 05:55, Frans Englich wrote:
> Perhaps. Anyway, check it out:
>
> http://mail.gnome.org/archives/gnome-vfs-list/2002-December/msg00123.html
>
from there:

> I therefore decided that I would try to replace the normal calls to
> open, read, write etc. with the GnomeVFS equivalents. What I did was to
> make a library that can be loaded with LD_PRELOAD. The library replaces
> the symbols mentioned above, and some more. At the moment the whole
> thing is on the "proof of concept" stage, but it looks like this hack
> could be made to work quite well

I thought that was their very first implementation back in time when they
started Gnome. But I am not 100% sure.

I doubt that it works well in all cases. It should work fine for, say, 80% of
the programs, but if you do it for everything (cp, cat, etc), 80% might not
be sufficient.

However, I can think of a wrapper script like artswrapper that does this
for selected programs.

- --Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAPuFYyFGHHVZzCLwRAqd5AJkBmyV2j61RaQUwllPD12UIH8NSfwCgu3ze
DzyVlP5raqzF7LTFYQyjACM=
=a83F
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list