Hi, I am new to the snap building process, and thus I decided to get started into this topic by updating an existing snap, which I have forked, for qbittorrent to a newer version.
I left the repository in a bad state - I was trying to fix the “missing icon” issue and as part of that had been trying to use the kde-neon extension and kde content snaps to no avail. If you do want to fork my work, check out the latest update I made yesterday, where I updated to 4.3.x and reverted a few commits.
To answer what’s going on with your error - the error is likely coming from parsing the .desktop file. I use the build stage to replace the automatic definition of the icon (Icon=qbittorrent) with a full path to the icon.
override-build: |
snapcraftctl build
sed -i 's|Icon=qbittorrent|Icon=/usr/share/icons/hicolor/192x192/apps/qbittorrent.png|g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.qbittorrent.qBittorrent.desktop
I gave up on using kde-neon, especially since it doesn’t support arm64.