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