summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Steiner <jimmac@gmail.com>2021-11-23 22:30:36 +0000
committerJakub Steiner <jimmac@gmail.com>2021-11-23 22:30:36 +0000
commit577bf6f7df02ca92560ab6af002b6bf5fb1d8081 (patch)
treeb8cef98dc3edb7ee5879df5483f880b9e61c740b
parent320b0efff2e1681159a2835047ac164b2cac040c (diff)
downloadadwaita-icon-theme-revert-320b0eff.tar.gz
Revert "Merge branch 'render-script' into 'master'"revert-320b0eff
This reverts merge request !35
-rwxr-xr-xrender-icon-theme.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/render-icon-theme.py b/render-icon-theme.py
index d9e8e5a96..51a75ba4d 100755
--- a/render-icon-theme.py
+++ b/render-icon-theme.py
@@ -8,7 +8,6 @@ import subprocess
OPTIPNG = '/usr/bin/optipng'
ZOPFLIPNG = '/usr/bin/zopflipng'
SRC = os.path.join('.', 'src', 'fullcolor')
-INKSCAPE_CMD = ['flatpak','run','org.inkscape.Inkscape']
inkscape_process = None
@@ -37,8 +36,7 @@ def wait_for_prompt(process, command=None):
def inkscape_render_rect(icon_file, rect, output_file):
#print("flatpak run org.inkscape.Inkscape --batch-process -i %s --export-type=png -o %s %s" % (rect, output_file,icon_file));
- inkscape_args = ['--batch-process', '-i', rect, '--export-type=png', '-o', output_file, icon_file]
- subprocess.run(INKSCAPE_CMD + inkscape_args)
+ subprocess.run(['flatpak','run','org.inkscape.Inkscape', '--batch-process', '-i', rect, '--export-type=png', '-o', output_file, icon_file])
optimize_png(output_file)
class ContentHandler(xml.sax.ContentHandler):
@@ -142,14 +140,6 @@ class ContentHandler(xml.sax.ContentHandler):
def characters(self, chars):
self.chars += chars.strip()
-if subprocess.run(['flatpak', 'info', '--show-ref', 'org.inkscape.Inkscape']).returncode != 0:
- try:
- subprocess.run(['inkscape', '--version'])
- except FileNotFoundError:
- sys.exit("Inkscape is required for this script")
-
- INKSCAPE_CMD = ['inkscape']
-
if len(sys.argv) == 1:
if not os.path.exists('Adwaita'):
os.mkdir('Adwaita')