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