Hello everyone. I’m currently working to create Snap package for our project:
Problem I have is that we have 3 apps in our Snap and they basically start each other. First you optionally start vcmilauncher
then it’s start vcmiclient
and when you start game client start vcmiserver
. Obviously all server, client and launcher need own capabilities, but since we use QProcess
or std::system
started process it’s inherit AppArmor profile as well. Currently I just added all needed plugs for both server and client to vcmilauncher
and what needed for the server to vcmiclient
.
apps:
vcmilauncher:
command: desktop-launch $SNAP/game/vcmilauncher
plugs:
- unity7
- network
- opengl
- x11
# For client
- pulseaudio
- alsa
# For server
- network-bind
vcmiclient:
command: desktop-launch $SNAP/game/vcmiclient
plugs:
- network
- opengl
- pulseaudio
- alsa
- x11
# For server
- network-bind
vcmiserver:
command: desktop-launch $SNAP/game/vcmiserver
plugs:
- network
- network-bind
Is there better way to handle this? I’ll really appreciate some advice. Thanks!