I created a daemon snap but it show mkrdir: cannot create directory /run/user/1001 : Permission denied
when I start it and my service is inactive.
part of snapcraft.yaml
file is like this:
MyApp:
adapter: full
command: usr/bin/MyApp
command-chain:
- bin/desktop-launch
daemon: simple
restart-condition: always
plugs: [home, unity7, x11, network, network-bind]
environment:
DISABLE_WAYLAND: 1
How can I get rid of this permission?