Skip to content

Commit c8fd139

Browse files
castrojoCopilot
andcommitted
fix(rancher-desktop): actually use pre-resized icon source file
Switch from GdkPixbuf runtime resize (fails in flatpak build sandbox: 'Loader process exited early with status 1') to installing a pre-resized 512x512 PNG committed as a source file. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a2a19f3 commit c8fd139

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

flatpaks/rancher-desktop/manifest.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ modules:
4343
- unzip -q rancher-desktop-linux-v1.22.0.zip -d /app/rancher-desktop
4444

4545
# Install 512x512 icon.
46-
# Despite the name, logo-square-512.png is actually 2134x2134.
47-
# flatpak-builder export rejects icons larger than their slot — resize with GdkPixbuf.
48-
- install -d /app/share/icons/hicolor/512x512/apps
49-
- python3 -c "import gi; gi.require_version('GdkPixbuf', '2.0'); from gi.repository import GdkPixbuf; p = GdkPixbuf.Pixbuf.new_from_file('/app/rancher-desktop/resources/resources/icons/logo-square-512.png'); p = p.scale_simple(512, 512, GdkPixbuf.InterpType.BILINEAR); p.savev('/app/share/icons/hicolor/512x512/apps/io.rancherdesktop.RancherDesktop.png', 'png', [], [])"
46+
# Upstream logo-square-512.png is actually 2134x2134; flatpak-builder export rejects
47+
# icons larger than their slot. A pre-resized 512x512 copy is included as a source file.
48+
- install -Dm644 io.rancherdesktop.RancherDesktop.512x512.png
49+
/app/share/icons/hicolor/512x512/apps/io.rancherdesktop.RancherDesktop.png
5050

5151
# Install and fix desktop file
5252
- install -Dm644
@@ -74,3 +74,6 @@ modules:
7474

7575
- type: file
7676
path: io.rancherdesktop.RancherDesktop.metainfo.xml
77+
78+
- type: file
79+
path: io.rancherdesktop.RancherDesktop.512x512.png

0 commit comments

Comments
 (0)