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

Integrate Facebook login to an application using Asgardeo

CKAD Exam preparation -Application Design and Build -Part3

Analyzing The Sentiment of Tweets With Java

Phase 3 Project: DesignTube — A youtube clone built with Ruby on Rails

What are Extension Methods and it’s use in Flutter?

Road Map to become an expert in compitative programming

Safari Audio Effects for Vlogs Pack 2

Safari Audio Effects for Vlogs Pack 2

How to improve the efficiency of teamwork with multi-account management?

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

Spatial Experiences

NLP — Tokenization with SOTA Byte Pair Encoding (BPE-Tokenizer)

CS371p Spring 2022 Week 9: Mueed Ahmad

What is Git and How to use Git…