Thank you very much for the help.
The error message was the same one but not the error itself. It was my mistake. Basically my app uses graphics and I need to include plugs, extensions and stage-packages so it can ran in strict mode. Its running fine now. Just in case anyone else has a similar problem I add my .yaml next (which is really simple). I am also adding the snapcraft doc pages where I found the information since it was very useful for me.
Right now I have just found a tricky thing that would like to solve. What I am doing is packaging an executable file with snapcraft. If I execute the executable file, it opens a browser that by default points to the user home directory. However, if I execute the one installed using snap, it points to “/home/$USER/snap/$APP_NAME/x1”. Is there anyway to prevent this behavior without modifying the executable file itself?
Thank you in advance
snapcraft links:
My .yaml:
name: myApp base: core18 version: ‘2.1’ summary: Single-line elevator pitch for your amazing snap description: | This is my-snap’s description. You have a paragraph or two to tell the most important story about your snap. Keep it under 100 words though, we live in tweetspace and your description wants to look good in the snap store.
grade: devel confinement: devmode #classic #strict
apps: myApp: command: bin/myExecutable plugs: - opengl - desktop - home extensions: - gnome-3-28
parts: myApp: # See ‘snapcraft plugins’ source: . plugin: dump organize: myExecutable: bin/myExecutable
stage-packages:
- libglu1-mesa