Initial snapcraft attempt.
Created by: extraymond
Hi! After some trial and error, this is my attempt to create a hamster snap with the least possible changes regards the code base.
A introduction to this snap:
- Reuse existing .desktop file.
- Change /usr/share path to $SNAP/usr/share to satisfy relative path under snap.
- Use gnome-3-28 extension to provide a stable gnome environment and reduce snap size.
Current limitation and noticeable changes:
- Snap confinement set to devmode instead of stict. To my understanding. This is due to gconf related issues. Since changing gconf to gsettings is underwent. I will revisit this part after so I won't break too much stuff.
- Manual launch script to start the two services before the GUI, so it won' crash. This is due to dbus-activation not currently possible for snap. There's upstream discussion between snap and dbus. Will update if possible.
- Change defs.py to defs_comp.py, and create a defs.py to proxy the defs_comp.py. Alter the path with os.environ['SNAP'] if detected to be launched by snap.
A included snap to play with. You can try with snap install hamster-snap*.snap --devmode