Snapcraft and SDL2 issues
zygmunt.krynicki at canonical.com
Wed Jun 22 06:26:28 UTC 2016
> Wiadomość napisana przez Didier Roche <didrocks at ubuntu.com> w dniu 22.06.2016, o godz. 08:07:
> Le 22/06/2016 01:15, Alex Spataru a écrit :
> Hey Alex!
>> I am creating a snap of my application, however, I am still having some issues:
>> - My application uses SDL2 to get joystick input and generate sounds. When packaged as a snap, my application cannot access joystick information nor generate sound tones.
> Even in devmode? (in case you didn't start with this, you need to always try to install and develop your applicaiton in devmode, then you remove confinement once it works).
> Then, as you provided log for, "snappy-debug.security scanlog" is a good way to trap potential issues.
> * On sounds:
> from your logs, only /dev/shm/pulse-shm-3539825856 seems to be related to sound, Zygmunt, is there any known issue on this with the pulseaudio interface?
I fixed two bugs related to sound yesterday. One affected all the systems other than ubuntu and debian. The other affected all systems. I suspect you may have to wait till …. today (today is the SRU day) to see this fixed.
> * On joystick input:
> I guess that's some of the udev errors, do you have such interfaces planned?
Can you please file a bug and tag it with „snaps-interfaces” on http://bugs.launchpad.net/snappy
>> - I launch several processes to obtain CPU usage and Battery status (which are later reported to the user). However, it seems that the "snapped" application cannot open external processes.
They can as long as they are inside the snap. You cannot rely on the host OS to have those applications.
> Right, if those are accessing some part of the system outside of your confinement zone, it will. I think knowning what processes you are executed in which circumstances would help Jamie & Zygmunt (CCed here) to understand what kind of interfaces would be needed.
>> For the moment, I use the following interfaces in my snap:
>> - x11
>> - network
>> - pulseaudio
>> - network-bind
>> - system-observe
>> - network-observe
>> Here are some links that may be useful for anyone willing to help:
>> - My snapcraft.yaml file: <https://github.com/alex-spataru/snappy-playpen/blob/master/qdriverstation/snapcraft.yaml>https://github.com/alex-spataru/snappy-playpen/blob/master/qdriverstation/snapcraft.yaml <https://github.com/alex-spataru/snappy-playpen/blob/master/qdriverstation/snapcraft.yaml>
>> - A log of the files that my snapped application cannot read: http://paste.ubuntu.com/17591328/ <http://paste.ubuntu.com/17591328/>
>> - My pull request to the playpen: <https://github.com/ubuntu/snappy-playpen/pull/79>https://github.com/ubuntu/snappy-playpen/pull/79 <https://github.com/ubuntu/snappy-playpen/pull/79>
>> Is there something that I can change in my snapcraft.yaml file to fix my issue?
>> Thanks in advance,
>> --Alex Spataru
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Snapcraft