gi-decompile-typelib(1)
π NAME π
okay bestie, welcome to the gi-decompile-typelib(1) page from the General Commands Manual β this is the one and only gi-decompile-typelib, aka Typelib decompiler. π
π¦ SYNOPSIS π¦
gi-decompile-typelib [OPTIONβ¦] TYPELIB [TYPELIBβ¦]
β¨ DESCRIPTION β¨
gi-decompile-typelib is a GIR decompiler, and it uses the repository API. It generates GIR XML files from the compiled binary typelib format. The output gets written to standard output unless the --output is specified.
The binary typelib format stores a subset of the information available in GIR XML, so not all typelibs can be decompiled in this way, and the resulting GIR XML might be incomplete. π
Normally, GIR XML should be generated from source code, headers and shared libraries using g-ir-scanner(1) (<man:g-ir-scanner(1)>) instead of using this tool. fr fr, thatβs the intended path.
π OPTIONS π
--helpβ show help options. π«Ά--output FILENAME,-o FILENAMEβ save the resulting output inFILENAME.--includedir DIRECTORYβ addDIRECTORYto the search path for typelibs. This option can be used more than once. The firstDIRECTORYon the command-line will be searched first (highest precedence). π--allβ show all available information.--versionβ show programβs version number and exit.
πΈ EXAMPLE πΈ
the source has a :: literal-block marker before this example, and then it goes like this:
$ libdir=/usr/lib/x86_64-linux-gnu # or /usr/lib64 or similar
$ gi-decompile-typelib -o Gio-2.0.gir
then the manpage literally has this system-message glitch, broken path line and all β not me, bestie π:
System Message: ERROR/3 (../docs/reference/girepository/gi-decompile-
typelib.rst:, line 84)
Unexpected indentation.
$libdir/girepository-1.0/Gio-2.0.typelib
$ diff -u /usr/share/gir-1.0/Gio-2.0.gir Gio-2.0.gir
You will see that the original GIR XML contains much more information than the decompiled typelib. πβ¨
π BUGS π
Report bugs at https://gitlab.gnome.org/GNOME/glib/-/issues
π HOMEPAGE and CONTACT π
π AUTHORS π
Matthias Clasen
okay thatβs the whole page, bestie β footer vibes: gi-decompile-typelib(1) from the General Commands Manual. Thereβs no extra source/version or date line in this footer, just the page name, fr fr. π
β¨
π¦ where this page comes from
- fedora 44: glib2-devel 2.88.0-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: glib2-devel 2.88.0-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: glib2-devel 2.88.4-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: glib2-devel 2.88.4-1.fc44 Β· LGPL-2.1-or-later
- nixos 26.05: glib 2.88.3
- π the page's license: LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms