kivy-snap
An attempt to get kivy working as a snap
The problem
With Kivy properly installed on Ubuntu, calling python main.py works. Typing text into the TextInput shows text and prints the event to the console. When running the code as a snap the event gets printed to the console, but nothing appears in the TextInput widget.
How to replicate
- Install snapd: http://snapcraft.io/docs/core/install
- Clone this project:
git clone git@github.com:hamptus/kivy-snap.git - Change to the new directory:
cd kivy-snap - Build the snap by entering:
snapcraft - Install the snap (this is for Ubuntu, it may differ for other distros):
sudo snap install kivysnap*.snap --force-dangerous --devmode - Run the snap by entering:
kivysnap - Type into the TextInput
If you want to modify the snapcraft.yaml, just run snapcraft clean before running snapcraft again.
The command I usually run to build, install, then run the command is:
snapcraft clean && snapcraft && sudo snap install kivysnap*.snap --force-dangerous --devmode && kivysnap