How to modify and zip back a gresource file in Ubuntu (18.04/20.04)

What will we learn ?

What is gresource ?

List and extract Gresource file contents

Gresource list and extract commands
#!/bin/sh

workdir=${HOME}/shell-theme
if [ ! -d ${workdir}/theme ]; then
mkdir -p ${workdir}/theme
fi
gst=/usr/share/gnome-shell/gnome-shell-theme.gresource

for r in `gresource list $gst`; do
gresource extract $gst $r >$workdir/${r#\/org\/gnome\/shell/}
done

Zip back the gresource file

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Widget-Perfect State Management in Flutte! Is it Possible?

Connecting UK Open Banking

From Coroutines, Live Data, MVVM and Retrofit Is anyone Hear me?

Serverless…What do I care as developer

How to do seamless sign on (SSO) for integrating SMART app with FHIR compliant EHR

Using SQLite with Python (Part 1)

Information disclosure via api misconfiguration

Employee Data.

Using Kotlin in a Serverless Architecture with AWS Lambda — Part 4: A Multi-layer Core for Your…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Payal Jain

Payal Jain

More from Medium

Project III : ESP32 Internal Sensor

GIN Introduction

Ubuntu 18.04安裝Vitis 2019.2, Xilinx Runtime, Vitis Embedded Base Platforms, Docker, Vitis AI v1.1

WireGuard on Windows Server