Looking for someone to point me in the right direction

I need some help. I have no prior programming experience. However, I thought it would be simple to do because the “create your first snap” tutorial looked easy and the Python app I want to snap has a simple installation procedure.

I’m trying to snap ANGRYsearch, a quick search application written in Python 3 with PyQt5 for the GUI. Currently, the snapcraft cleanbuild process crashes because it can’t find the .desktop file.

Here is my snapcraft.yml:

name: angrysearch # you probably want to 'snapcraft register <name>'
version:  '1.0.2'
summary: ANGRYsearch, a fast search tool for Linux
description: |
  ANGRYsearch is a tool written in Python and designed to show search results 
  as you type. 
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots

apps:
    angrysearch:
        command: bin/angrysearch
        command: desktop-launch application
        plugs: 
        - unity7
        - home
        - desktop
        - desktop-legacy
        - wayland
        desktop: usr/share/applications/angrysearch.desktop

parts:

  angrysearch:
    source: https://github.com/DoTheEvo/ANGRYsearch
    source-type: git
    plugin: python

    stage-packages:
      - python3-pyqt5

Thanks in advance.

Out of curiosity, does it build correctly if you remove the desktop line from the snapcraft.yml file?

I had to delete the command: desktop-launch application and desktop: usr/share/applications/angrysearch.desktop lines for the snap process to finished without error. When I tried to run the application by typing angrysearch in the terminal (after installing the snap), I get this error:

This application failed to start because it could not find or load the Qt platform plugin "xcb".

Reinstalling the application may fix this problem.
Aborted (core dumped)