canonical / iot-example-graphical-snap

Developer Guide for Embedding IoT GUI with Ubuntu Frame
MIT License
22 stars 11 forks source link

snap: use `snapctl model` to determine if Classic #21

Closed Saviq closed 1 year ago

Saviq commented 1 year ago
# on Core16..22
$ for i in 16 18 20 22; do multipass exec core$i -- snap run --shell ubuntu-frame -c "snapctl model" 2>&1 | awk '/^classic:/ { print $2 }'; done

# locally on Classic+TPM-FDE
$ sudo snap run --shell ubuntu-frame -c "snapctl model" 2>&1 | awk '/^classic:/ { print $2 }'                                                    
true