so now my snapcraft.yaml is this:
name: persepolis
version: 3.2.0
summary: Persepolis
description: |
Persepolis is a download manager & a GUI for Aria2.
base: core18
icon: resources/persepolis.svg
grade: stable
confinement: strict
apps:
persepolis:
command: python3 $SNAP/persepolis/__main__.py
plugs:
- opengl
- network
- network-bind
- x11
- desktop
- home
- pulseaudio
parts:
persepolis:
stage-snaps:
- youtube-dl/latest/stable
plugin: python
python-version: python3
source: .
stage-packages:
- python-six
- python3
- python3-pyqt5
- python3-requests
- python3-setproctitle
- python3-psutil
I’m having problem related to the apps: command: section; my snap compile and install successfully, but when i try to launch the app I receive this error:
:~/snap/persepolis$ persepolis
/snap/persepolis/x2/usr/bin/python3: can't open file '/snap/persepolis/x2/persepolis/__main__.py': [Errno 2] No such file or directory
this is all I have in the snap file:
/snap/persepolis/x2$ tree -d -L 2
.
├── bin
├── etc
│ ├── bash_completion.d
│ ├── ca-certificates
│ ├── fish
│ ├── fonts
│ ├── glvnd
│ ├── gss
│ ├── init.d
│ ├── openal
│ ├── pulse
│ ├── python2.7
│ ├── python3.6
│ ├── sensors.d
│ ├── ssl
│ └── X11
├── lib
│ ├── python3.6
│ ├── udev
│ └── x86_64-linux-gnu
├── meta
│ └── gui
├── meta.youtube-dl
├── share
│ ├── doc
│ └── man
├── snap
│ └── command-chain
├── snap.youtube-dl
│ └── command-chain
├── usr
│ ├── bin
│ ├── include
│ ├── lib
│ ├── sbin
│ └── share
└── var
└── lib
so there is not any of the source files where my snapcraft.yaml is located…
the snapcraft.yaml is located in the root directory of a git cloned of https://github.com/persepolisdm/persepolis like in the doc instructions.