Host tools in snap shell
Alberto Mardegan
alberto.mardegan at canonical.com
Wed Oct 26 07:52:27 UTC 2016
On 25/10/2016 19:37, Sergio Schvezov wrote:
>
> ```
> snapcraft prime
> snap try prime --devmode
> cp /usr/bin/strace prime
> snap shell <snap.app> --shell
> (sudo) ./strace ...
> ```
I got a few different issues when attempting to run my snap under sudo
and strace. I solved them by using this command line:
SUDO_ASKPASS=cat sudo -E strace -u <my-user> <binary>
Maybe other will find this useful.
Ciao,
Alberto
More information about the Snapcraft
mailing list