[19:57] <probono> hi all. is it possible to make a valid snap "by hand", i.e., using mksquashfs?
[19:57] <probono> no snapcraft, etc.?
[19:57] <probono> if so, how?
[19:58]  * probono is thinking about making a snap that is also an AppImage at the same time...
[19:58] <ijohnson> You can use `snap pack some-dir` to create the snap file assuming you've prepared the contents of the snap independently
[20:00] <probono> thanks ijohnson
[20:05] <probono> Gettig error: cannot pack "./squashfs-root": invalid snap name: "NotepadPlusPlus"
[20:07] <probono> ok, needs to be all lowercase....
[20:07] <probono> me@host:~$ snap pack ./squashfs-root
[20:07] <probono> 2018/12/21 21:07:20.418838 container.go:205: in snap "notepadplusplus": "." should be world-readable and executable, and isn't: drwx------
[20:07] <probono> error: cannot pack "./squashfs-root": snap is unusable due to bad permissions
[20:07] <probono> what now?
[20:09] <ijohnson> you probably need to make that directory "squashfs-root" readable, i.e. `chmod +r squashfs-root`
[20:09] <probono> me@host:~$ chmod -R +r squashfs-root
[20:09] <probono> me@host:~$ snap pack ./squashfs-root
[20:09] <probono> 2018/12/21 21:09:36.736235 container.go:205: in snap "notepadplusplus": "." should be world-readable and executable, and isn't: drwxr--r--
[20:09] <probono> error: cannot pack "./squashfs-root": snap is unusable due to bad permissions
[20:10] <ijohnson> maybe you also need `chmod -R +x`
[20:13] <probono> indeed ijohnson
[20:13] <probono> now i have a .snap file - how to i run it?
[20:14] <probono> $ snap run note*.snap
[20:14] <probono> error: cannot find current revision for snap notepad: readlink /snap/notepad/current: no such file or directory
[20:15] <probono> me@host:~$ sudo snap install note*snap
[20:15] <probono> error: cannot find signatures with metadata for snap
[20:15] <probono>        "notepadplusplus_1.0_all.snap"
[20:17] <ijohnson> snaps are meant to be installed from the snap store at snapcraft.io, and when you go to run something like `snap install my-snap`, the snap file is downloaded along with assertions for the snap in an .assert file. If you want to install a snap without also installing assertions, as in your case when installing a snap built locally and not uploaded to the store you need to add the `--dangerous` flag
[20:17] <ijohnson> i.e. run `snap install --dangerous my-snap*.snap`
[20:22] <probono> me@host:~$ sudo snap install --dangerous note*snap
[20:22] <probono> error: only one snap file can be installed at a time
[20:23] <ijohnson> you probably have multiple *.snap files, either remove the ones you aren't trying to install or make the pattern more specific
[20:23] <probono> stupid me, sorry
[20:24] <probono> can install now
[20:24] <probono> but.
[20:24] <probono> me@host:~$ notepadplusplus
[20:24] <probono> snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks
[20:28] <probono> trying
[20:28] <probono> sudo snap install --devmode --dangerous notepadplusplus_7.6.1_all.snap
[20:28] <probono> does not seem to help
[20:28] <probono> how can i disable all "security"?
[20:30] <ijohnson> the error message about snap-confine is not one I can help debug at the moment unfortunately. I'd recommend posting on the forum at forum.snapcraft.io for more help, as that seems like there may be an issue with your snapd installation
[20:31] <probono> ok, thanks for your help ijohnson
[21:05]  * cachio EOY
[21:56] <probono> https://github.com/probonopd/libhookexecv/issues/4
[21:56] <probono> me@host:~$ sudo apt purge snapd snap-confine
[21:56] <probono> me@host:~$ sudo apt install -y snapd
[21:56] <probono> did the trick
[21:56] <probono> but now running into new issues
[22:05] <mup> PR snapcraft#2430 opened: extractors: better appstream support for descriptions <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2430>
[22:06] <ijohnson> probono: unfortunately I have to take off now, but if you post on the forum you're more likely to get help since most folks won't be watching IRC for the next 2 weeks due to holidays
[22:07] <ijohnson> good luck!
[22:10] <probono> ping zyga
[23:09] <mup> PR snapcraft#2431 opened: tests: re-enable spread tests on gce <Created by sergiusens> <https://github.com/snapcore/snapcraft/pull/2431>