GRESOURCE(1)
β¨ NAME β¨
gresource β the GResource tool, bestie π
πΈ SYNOPSIS πΈ
gresource [--section SECTION] list FILE [PATH]
gresource [--section SECTION] details FILE [PATH]
gresource [--section SECTION] extract FILE PATH
gresource sections FILE
gresource help [COMMAND]
π¦ DESCRIPTION π¦
okay so gresource is literally the cutest little commandline interface to GResource π it lets you list and extract resources that have been compiled into a resource file, or that are vibing inside an ELF file (that's a binary or a shared library, iykyk).
the file you wanna mess with is given by the FILE argument, periodt.
now here's the tea: if an ELF file has multiple sections with resources in them, you can pick which one you wanna operate on with the --section option π
and to find out which sections even exist? use the sections command. iconic behaviour honestly.
π COMMANDS π
listβ lists resources β¨ if SECTION is given, it only lists resources in that section. if PATH is given, it only lists matching resources. simple as that, no cap.detailsβ lists resources with details π if SECTION is given, only resources in this section get listed. if PATH is given, only matching resources get listed. and the details? they include the section, the size, and the compression of each resource. very demure, very mindful.extractβ extracts the resource named by PATH and sends it straight to stdout π«Ά
β οΈ heads up bestie: resources may contain binary data! do not just cat that into your terminal and act surprised π
sectionsβ lists sections containing resources. this is only interesting if FILE is an ELF file π otherwise, meh.helpβ prints help and exits. the classic. π
and that's the whole page, babe β it's the gresource() manual, your one-stop glow-up guide to the GResource tool π§β¨ mwah, go slay some resources π
π¦ where this page comes from
- arch rolling: glib2-devel 2.90.1-1 Β· LGPL-2.1-or-later
- ubuntu stonking: libglib2.0-bin 2.90.0-1 Β· LGPL-2.1-or-later
- π the page's license: LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms