Find the source code of libgio

gnomesource

I want to study how its GFileInfo components works.

Best Answer

Where did you get libgio.so? On most Linux distributions, there's an automatic way of retrieving the source code of a package.

For example, on Debian, Ubuntu and derived distributions, run dpkg -S to see what package libgio.so belongs to, then apt-get source to get the source code of that package. Example ($ represents my shell prompt; on my system, the gio library is in a file called libgio-2.0.so):

$ dpkg -S libgio-2.0.so
libglib2.0-dev: /usr/lib/libgio-2.0.so
libglib2.0-0: /usr/lib/libgio-2.0.so.0
$ apt-get source libglib2.0-0
Related Question