Trying running my build of Hypnotix in snap results in segmentation fault:
user@hp-laptop:~$ hypnotix
Segmentation fault (core dumped)
Is there a way to debug the issue (I’ve tried gdb but it doesn’t seem to target the actual binary)? The app works fine without snap.
My manifest is as follows:
name: hypnotix
base: core22
version: '4.2'
summary: S
description: D
grade: stable
confinement: strict
package-repositories:
- type: apt
ppa: kelebek333/mint-tools
parts:
hypnotix:
plugin: nil
stage-packages:
- hypnotix
override-prime: |
snapcraftctl prime
sed -i -e 's|"/usr/share/hypnotix/countries.list|os.environ["RESBASE"]+"/share/hypnotix/countries.list|g' usr/lib/hypnotix/hypnotix.py
sed -i -e 's|"/usr/share/hypnotix|os.environ["RESBASE"]+"/share/hypnotix|g' usr/lib/hypnotix/hypnotix.py
sed -i -e 's|f"/usr/share/circle-flags-svg/|os.environ["RESBASE"]+f"/share/circle-flags-svg/|g' usr/lib/hypnotix/hypnotix.py
sed -i -e 's|"/usr/share/locale|os.environ["RESBASE"]+"/share/locale|g' usr/lib/hypnotix/hypnotix.py
apps:
hypnotix:
extensions: [gnome]
command: usr/lib/hypnotix/hypnotix.py
desktop: usr/share/applications/hypnotix.desktop
environment:
RESBASE: $SNAP/usr
plugs:
- network