Blob Blame Raw
From a6a8c92355488e22709a8b89a8188788bb2d9560 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Mon, 25 Mar 2019 16:51:57 -0400
Subject: [PATCH] Install icons to correct hicolor subdirectory.

Sized directories in hicolor are defined as {size}x{size}, not plain
{size}.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
 paperwork-gtk/src/paperwork/frontend/shell.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/paperwork-gtk/src/paperwork/frontend/shell.py b/paperwork-gtk/src/paperwork/frontend/shell.py
index 5d075c0e..b9044480 100644
--- a/paperwork-gtk/src/paperwork/frontend/shell.py
+++ b/paperwork-gtk/src/paperwork/frontend/shell.py
@@ -48,7 +48,8 @@ def _install(icondir, datadir):
     ]
     png_src_icon_pattern = "paperwork_{}.png"
     png_dst_icon_pattern = os.path.join(
-        icondir, "hicolor", "{}", "apps", "work.openpaper.Paperwork.png"
+        icondir, "hicolor", "{size}x{size}", "apps",
+        "work.openpaper.Paperwork.png"
     )
     desktop_path = os.path.join(
         datadir, 'applications', 'work.openpaper.Paperwork.desktop'
@@ -65,7 +66,7 @@ def _install(icondir, datadir):
                 'paperwork.frontend.data',
                 png_src_icon_pattern.format(size)
             ),
-            png_dst_icon_pattern.format(size),
+            png_dst_icon_pattern.format(size=size),
         ) for size in ICON_SIZES
     ]
     to_copy.append(
-- 
2.20.1