Electron application with capitalised executable name


#1

Skrifa (source) is an electron snap which currently has a broken .desktop launcher. It is broken because the desktop launcher uses the capitalised name of the executable while the app name is lowercase. As a result, snapd simply filters out the Exec= line of the desktop launcher on install.

meta/gui/skrifa.desktop

[Desktop Entry]
Name=Skrifa
Comment=A simple word processor built with web technologies
Exec=Skrifa
Terminal=false
Type=Application
Icon=${SNAP}/meta/gui/icon.png
StartupWMClass=Skrifa
Categories=Office;

meta/snap.yaml

apps:
  skrifa:
    command: command.sh
    plugs:
      - desktop
      - desktop-legacy
      - home
      - x11
      - unity7
      - browser-support
      - network
      - gsettings
      - pulseaudio
      - opengl
    environment:
      TMPDIR: $XDG_RUNTIME_DIR
      PATH: '$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH'
      SNAP_DESKTOP_RUNTIME: $SNAP/gnome-platform
      LD_LIBRARY_PATH: '$SNAP_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu'

Since this snap is generated by electron-builder, I have no idea how to proceed to fix this. Is this a bug in electron-builder?