Fix up the icon location in the desktop file

For regular desktop users they don't need this work around, it's mainly due to how snaps are mounted.
This commit is contained in:
Zach Bacon 2019-12-28 22:01:53 -05:00
parent 065e700fc8
commit 312b541625
No known key found for this signature in database
GPG Key ID: 0F1C8FECF5BCF671
1 changed files with 4 additions and 4 deletions

View File

@ -52,8 +52,7 @@ parts:
snapcraftctl pull
last_commit="$(git describe)"
snapcraftctl set-version "${last_commit}"
sed -i.bak -e 's|Icon=vbam|Icon=/share/icons/hicolor/scalable/apps/visualboyadvance-m.svg|g' src/wx/visualboyadvance-m.desktop
sed -i.bak -e 's|Icon=visualboyadvance-m|Icon=/usr/share/icons/hicolor/scalable/apps/visualboyadvance-m.svg|g' src/wx/visualboyadvance-m.desktop
plugin: cmake
stage-packages:
- git
@ -88,11 +87,12 @@ parts:
configflags:
- -DENABLE_OPENAL=ON
- -DENABLE_SDL=OFF
- -DCMAKE_INSTALL_PREFIX=/usr
apps:
visualboyadvance-m:
command: bin/visualboyadvance-m
desktop: share/applications/visualboyadvance-m.desktop
command: usr/bin/visualboyadvance-m
desktop: usr/share/applications/visualboyadvance-m.desktop
extensions: [gnome-3-28]
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio