/srv/irclogs.ubuntu.com/2016/04/22/#snappy.txt

stevebiscuitdz0ny_: I'm still in the process of getting WebDM building against the latest snappy03:24
=== chihchun_afk is now known as chihchun
chriss_hello05:39
chriss_Any one their05:40
chriss_hey05:44
rampawhen will the new porting guide for Snappy get release?06:27
dpmmorning all07:01
dpmasac, do you happen to own the webdm snap? It does not seem to work atm, and if so, would you mind unpublishing it from the store until it's been fixed?07:03
dpmSame for whoever owns the xkcd-webserver snap07:04
dpmPeople are installing these on their desktops and get confused about running them07:04
flexiondotorgI've been experimenting when making my first snaps.08:42
flexiondotorgThey are Python utilities and the Python plugins for snappy are ace. I have snaps and all dependencies are met. Great!08:43
flexiondotorgHowever, when I execute tools from these snaps they complain about permission errors or not being able to read dot files etc.08:43
flexiondotorgIs there something "special" I should be doing to allow these snaps to access dot files and data in my home directory?08:44
stevebiscuitdpm: I don't have access to the store and I think most if not all of the core team have taken the day off today. sergiusens could possibly be of help08:56
dpmflexiondotorg, check the notes on the 'home' interface here: https://developer.ubuntu.com/en/desktop/examples/#snap-python08:57
dpmstevebiscuit, ok, thanks, I'll check with him when he's up08:58
flexiondotorgdpm, Thanks. I already see this solution :-)08:58
popey:)09:00
flexiondotorgdpm, This is good stuff - https://github.com/ubuntu-core/snappy/blob/master/docs/interfaces.md09:25
flexiondotorgIf I have an application that want to read dotfiles/dirs in my home directory, does the document about imply that is simply not possible?09:26
davidcallejdstrand: ^09:27
dpmflexiondotorg, I think that's what it means, but you might want to ask the security team for the rationale, jdstrand or tyhicks might be able to help you when they're up later on09:27
flexiondotorgdpm, Thanks. Guidance appreciated.09:28
dpmnp :)09:28
flexiondotorgOne of the apps I'm snapping is Mackup, which is a dotfile backup tool.09:28
flexiondotorgThe other is a static site generator.09:29
flexiondotorgSome the 'home' plug is fine.09:29
flexiondotorgHmm, still not able to access files in my home directory :-(09:39
asacdpm: nope ... thats sergiusens and one of beuno's folks now i think...09:42
asacdpm: xkcd-webserer is mvo09:42
asacthe above was for webdm09:42
asaci own(ed) hello-world with all its neat features :)09:43
asacand go-example-serbserer09:43
asacwebserver09:43
asacbut that one i didnt rev for a while09:43
asacand hello-world seems good to go09:43
dpmasac, those two are actually fine, they work09:43
asaci love hello-world.sh on desktop :)09:44
asacshows you right away how you feel in the sandbox09:44
asachehe09:44
* asac just tried09:44
dholbachhow far are we with the images on cdimage.u.c? are all of them official, golden and working now?09:55
ogra_dholbach, far from10:01
ogra_the ones that mvo built had partially broken kernels ... i.e. the final arm kernels only landed wednesday evening ...10:02
ogra_yesterday i was busy fixing the breakage the renaming of the kernel packages caused ...10:02
ogra_the store is in a proper shape now but i havent re-built the images yet ... i'll put some up when i'm done generating and testing them10:03
dholbachok, THANKS10:03
dholbachthanks10:03
dholbachsorry, caps lock strikes again10:03
ogra_heh10:03
dholbach"big thanks" :)10:03
ppisati$ sudo snap install blabla.snap10:05
ppisatierror: change finished in status "Hold" with no error message10:05
* ogra_ runs snap find blabla10:05
ppisatihow do i debug this?10:06
ogra_ppisati, is that on an image or on desktop10:08
ppisatiogra_: amd64 image, kvm, while installing a custom kernel10:09
ogra_well, thats a zyga or mvo question i fear10:09
ppisatiif i recompile a 4.4 kernel with snapcraft, everything is fine now - it install fine and i can boot the img10:10
ogra_(neither is around)10:10
ppisatiif i recompile an old kernel (3.14 in this case), i get this10:10
ogra_cool !10:10
ogra_(good to know the initrd works now)10:10
ppisatiin the 4.4 case, x86_64_defconfig + snappy options + sqaushfs with xz support: ok, working img10:10
ppisatiin the 3.14 case, i get that error10:11
ppisatiogra_: yep, at least it boot now10:11
ppisatithe next step is to get a 3.14 minimal kernel to work10:11
ogra_one of the biggest requests i had at embedded world was a proper realtime kernel ... i was wondering if we could provide a source tree with the required patches for people ...10:12
ogra_(without building or officially supporting it indeed)10:12
ppisatiogra_: once we get this stuff sorted out, i think we can talk about that10:13
ppisatiogra_: what i would like to find, is a suite of tests to run again a series of kernels (3.14...4.4) to assess that everything is fine10:13
ogra_yeah10:13
ogra_well, a config checker would be nice ...10:14
ogra_hooked into the kernel plugin10:14
ogra_ppisati, did you try the --devmode option yet ?10:15
ogra_snap install --devmode blabla.snap10:15
ppisatiogra_: nope10:15
ogra_perhaps that works around that10:15
ppisatiogra_: but i didn't need that woth the 4.410:15
* ppisati tries10:15
ppisatisame error10:16
ogra_hmm10:16
ppisatii'm using mvo's amd64 img, FWIW10:16
ppisatihttp://people.canonical.com/~mvo/all-snaps/10:16
ppisatithe amd64 img there10:16
ogra_yeah10:16
ogra_yakkety !10:42
asachmm... what a mystery... bought a wifi dongle, plugged into rpi, shows up as wlan0, seems its a mac80211 driver we have in our kernel, can connect with wpa-psk ... so far so fine10:43
asacbut ... iw list does not show it10:43
asacneither is there a phyX somewhere in sysfs :(\10:43
asacon pi210:43
* asac lost... on desktop it has a phy in sysfs and also is visible in iw list...10:44
asacppisati: any idea?10:44
ogra_asac, did you simply try to create a file in /etc/network/interfaces.d and reboot ?10:45
ogra_http://people.canonical.com/~ogra/snappy/all-snaps/dragonboard/README works just fine on the dragonboard10:46
ppisatiasac: uhm, nope10:46
asacogra_: I CAN connect to wifi10:46
asacits there was wlan0 etc.10:46
asacit just has no phy :)10:46
ogra_cant have everything :P10:46
asaclol10:46
asacno radio :)10:47
asacmagic10:47
ogra_pfft, radio ... use spotify ... :P10:47
asacpitti: any idea? is there udev magic involved to get ieee80211/phyX entries in sysfs?10:49
* ogra_ wonders who had the glorious idea to use xz for all images nowadays ... i'm really doubting the extra time it takes to cokmpress them actually pays off that much 10:49
ogra_(gzip is only a few MB bigger but 20x as fast)10:50
pittiasac: no, /sysfs (and most of /dev) is entirely managed by the kernel10:50
asacright10:50
asacpitti: so on my pi2 i have it as wlan010:50
asacon desktop where it has phy it is like the new long format10:50
* asac reboots and hopes for magic10:51
asacogra_: think for our squash it makes some sense... for the download artifacts i feel the same10:52
asacogra_: guess now we have two times xz? first xz the tar, then untar and squash again?10:54
asacppisati: who is our wifi expert? :) seth?10:56
asacmaybe i should try 4.4 kernel... still on 4.310:58
asacbut this cant be such new feature10:58
ogra_asac, no, i'm talking about img.xz actually ... the snaps are created directly with no tarballs involved11:02
asaccool thats good news at least11:03
ogra_(i actually need to turn off tarball creation in cdimage since we dont use them anymore ... they are still built in parallel)11:03
asacso yeah, guess for our images with squash xz for core inside etc. it doesnt need xz11:03
asacshouldnt be super big gain11:04
ogra_well, i'Äm currently producing them on my laptop (udf and trustys kpartx dont work well, so i cant use my desktop)11:04
ogra_compressing one image takes around 12min ... 2-3 with gzip11:05
asacppisati: its the pi2 kernel for sure... tested on db and beagle and both get the /sys/class/ieee80211/phy* entry11:05
asacunforuntatley its the 4.3 one still11:05
ogra_thats broken11:06
ogra_(seccomp bugs)11:06
asacogra_: can i get a 4.4 kernel for the old all snaps?11:06
asacright11:06
asacbut not the 4.311:06
asacstill its super weird11:06
asacthat the wlan0 interface works11:06
ogra_i only uploaded to the 16 series11:06
asacbut no radio hardware is seen11:06
ogra_snap refresh shoudl work if you are on one of these images11:06
asacguess have to work on the beagle then for the time11:07
asacfine11:07
ogra_i'll push a new image up once they are built and i have at least boot tested them11:07
asacogra_: but 16 series images have no classic, or?11:07
ogra_right11:08
asacso yeah let me not go down that path :)11:08
ogra_you need to use an ubuntu-core tarball and chroot for the moment11:08
asacrather wait for stuff to settle11:08
ogra_that might take some time though11:09
ogra_and we wont update the rolling images anymore11:09
asacsounds like its perfect to use that last image for work :) ... e.g. stable until the other side settles in11:13
asacif the wifi only would work well on pi2 :P11:13
* asac moves classic files to beagle11:18
dz0ny_heh http://mjg59.dreamwidth.org/42320.html11:25
dz0ny_Circumventing Ubuntu Snap confinement11:25
ogra_dz0ny_, yeah, known issue11:34
ogra_(there was discussion to show a popup to make the user confirm, but that was considered to intrusive, not sure what the final outcvome was though)11:34
svijogra_: too bad, now it feels like, everyone is just repeating matthew garrets blog post, rather than the other improvements on snappy :/11:36
ogra_well11:36
ogra_he's not wrong though11:36
svijI know11:36
svijwhat happens if someone publishes his package to the store, does the automatic review tool recognise that? I think no?11:38
ogra_you got to ask tyhicks or jdstrand11:39
popeysvij: snaps aren't currently automatically reviewed11:40
popeyso if he (or someone else) uploaded it, it wouldn't get to customer machines11:40
popey(AIUI)  😃11:40
svijah, so someone checks them manually right now?11:40
sergiusensdpm what's up?11:48
sergiusensgood morning!11:48
dpmhey sergiusens, morning!11:48
dpmsergiusens, so, webdm does not seem to be working, and I was suggesting to unpublish it from the store until it's fixed11:48
dpmpeople are starting to install everything they see with 'snap find'11:49
dpmand are getting confused at things not working11:49
dpmsame with xkcd-server11:49
dpmbut I think that one is for mvo when he's back11:49
simosxA common question regarding snappy is whether more diskspace and memory will be used when you have installed several snaps.11:54
simosxIs there a page that talks about this?11:54
ogra_you mean because of the bundeling of libs ?11:55
ogra_(i dont think there is a page)11:55
dpmhi simosx, certainly more disk space, although we're looking at options to reduce this. Not sure why snaps should consume more memory, but I'm not an expert11:59
simosxogra_, yes, having extra copies for the libraries. Also, since the libraries are not shared libraries, there would be a few extra copies loaded in memory for the same library.12:00
ogra_usually they are shared12:00
ogra_snapcraft uses deb packages by default12:00
sergiusensdpm check if it is still there12:00
sergiusenstook me some time to find it :-)12:01
ogra_but they arent shared between snaps12:01
dpmsergiusens, it's still there - did you unpublish it? Perhaps there is some delay until it's hidden12:01
simosxI assume a stock answer would be "surely, more diskspace and somewhat more RAM is used. But in practice, the RAM issue is not so big"12:02
ogra_right12:02
dpmogra_, do you happen to know why all the non-amd64 canonical-* gadgets appear in the output of 'snap find' on the desktop?12:02
ogra_there will be ways that you can ship a library snap ... to be consumed by your own snaps ...12:02
simosxIt would be important to have some answer on this, preferably on a blog post.12:02
ogra_dpm, no, but i'm ranting about that since a year :)12:03
ogra_dpm, gadgets should simply be hidden ... or only visible via some option to find ... like --type=gadget or so12:03
dpmok, I pinged Martin about it, see if he can shed some light into it. At the very least, I think they should not appear listed in foreign architectures12:04
ogra_dpm, there are no foreign arches ... gadgets are arch all ;)12:04
dpmoh, that explains it then :)12:04
ogra_that is why i think we need to filter by type instead :)12:05
kyrofaGood morning12:06
sergiusensdpm Status Unpublished12:08
sergiusensdpm btw, super close to get a build of vscode working; I just need to pull in electron12:08
sergiusensall using just the nodejs plugin (I did however had to export envvarts)12:08
dpmsergiusens, ah, awesome. Have you had some thoughts about how to deal with electron apps?12:09
sergiusensdpm apparently you just need to gulp it12:10
sergiusenswas going to ask stevebiscuit or beowulf what the nicest way to do that would be12:10
dpmI'm not familiar with gulp, other than having heard the name12:11
flexiondotorgHmm.12:11
flexiondotorgI'm confused.12:11
flexiondotorgI have made 3 Python snaps.12:12
flexiondotorgNone are able to read anything in my home directory.12:12
ogra_hwo would they12:12
dpmflexiondotorg, do they use the 'home' plug, and did you connect it manually?12:12
flexiondotorghttp://paste.ubuntu.com/15980091/12:12
ogra_they are confined12:12
flexiondotorgdpm, See one example.12:13
ogra_right, you need to connect the plug12:13
ogra_after install12:13
flexiondotorgIs there anything obviously wrong there?12:13
flexiondotorgConnect to the plug?12:13
flexiondotorgIn the yaml?12:13
ogra_no, using the snap command12:14
dpmflexiondotorg, did you check out the link I sent you earlier on? https://developer.ubuntu.com/en/desktop/examples/#snap-python12:14
dpmit shows you how to do the manual connection12:14
flexiondotorgdpm, Ahh.12:14
dpm:)12:14
flexiondotorgSo those plugins are not automatically exposed.12:15
flexiondotorg*plugs12:15
dpmflexiondotorg, going forward, there have been some talks of doing the prompt more interactive, but for now, you'll need to manually connect12:15
ogra_they are exposed, but not automatically interconnected12:15
flexiondotorgRight, got it.12:16
flexiondotorgOnce the plugs are connected to they persist across boots?12:16
popeydpm: do you detect arch triplet in any of your snaps, or hard wire it for amd64?12:16
sergiusensdpm I might need to run a "re index" not sure; last time I did that I broke the store. I'll jut delegate to matiasb, nessita or beuno12:16
dpmpopey, I'm glad you ask :) -> askubuntu.com/questions/757668/how-to-build-multi-arch-snaps12:17
ogra_popey, do you want to build a 600MB calculator multi snap ?12:17
popeyhaha12:17
ogra_(though for all arches that might become 1GB)12:17
dpmogra_, too late for that!12:17
* popey considers a 1.2GB DocViewer12:17
ogra_(since we now also support s390x and ppc64el)12:17
ogra_really ... dont do multi snaps12:18
sergiusenspopey I would create a snap call coreapps with all the apps in there ;-)12:18
dpmpopey, for clock and calculator, I built separate snaps for each arch.12:18
ogra_(multiple snaps with same name for different arch is fully supported)12:18
sergiusenspopey you would save lots of space by having all of them in12:18
popeysergiusens: I'll put kvm and an iso in one containing all the core apps :þ12:18
dpmbut for some reason the x86 fail to start12:18
popeypffft i386 is dead to me12:19
popeyexcept for this 10 year old Thinkpad T43 on my desk :)12:19
popeythanks for the snippet dpm12:19
dpmsergiusens, so https://github.com/sergiusens/qt5conf works well for binary Qt5 apps, but is there a way to specify a different launch command, for QML apps, for example? Up until now, I've exec'd them so in the wrapper file:12:20
dpmcd $SNAP12:20
dpmexec $SNAP/usr/bin/qmlscene $SNAP/usr/share/ubuntu-clock-app/ubuntu-clock-app.qml12:20
dpmnw popey12:21
flexiondotorgHmmm, I'm unable to connect to the home plug using this snap - http://paste.ubuntu.com/15980091/12:23
flexiondotorgI have multiple executables in that snap. I can't find a namespace the the home plug with connect to.12:23
flexiondotorgBut the network plug appears to be connected to the podpublish namespace.12:23
dpmflexiondotorg, what does 'snap' interfaces show you?12:24
dpmsorry, `snap interfaces`12:24
jdstrandsvij: no. the automated review tool cannot discover a malicous app wrt mjg's post12:24
flexiondotorgdpm, This http://paste.ubuntu.com/15980231/12:25
flexiondotorgLast line looks odd.12:25
dpmflexiondotorg, it tells your app's plug you it's not connected to the ubuntu-core:home slot12:26
dpmflexiondotorg, and `sudo snap connect podpublish:home ubuntu-core:home` does not work for you?12:26
flexiondotorgRight, sec. Will report back...12:27
flexiondotorgJust building the snap...12:27
svijjdstrand: ah okay12:30
jdstrandas of today because applications use X you have to trust the application12:30
jdstrandthat was always understood to be the case12:31
flexiondotorgdpm, OK, progress.12:31
flexiondotorgBut not quite working.12:31
dpmflexiondotorg, something that helps when debugging is looking at /var/log/kern.log to watch for AppArmor denials12:32
flexiondotorghttp://paste.ubuntu.com/15980333/12:32
flexiondotorgdpm, So running the executable works and can parse the configuration file. So can access my home directory.12:32
dpmgood12:33
flexiondotorgBut then the path of the files in the configuration are being passed back in a different hierarchy.12:33
dpmso did you forget to ship that file, or is there some path that needs to be readjusted?12:33
flexiondotorghttp://paste.ubuntu.com/15980333/12:33
flexiondotorgERROR! /home/martin/snap/podpublish/100001/Dropbox/UbuntuPodcast/Backdrops/S09E07.jpg was not found. Abort.12:34
flexiondotorgThe file path configured in the .ini file is /home/martin/Dropbox/UbuntuPodcast/Backdrops/S09E07.jpg12:34
flexiondotorgAnd it exists.12:34
dpmit seems to me that the python app is making that path relative to where it's launched from?12:35
flexiondotorgIt doesn't.12:35
flexiondotorgIt does expand the user home directory.12:36
ogra_you might need to generate the ini file from a wrapper then12:37
flexiondotorgIn fact it doesn't do that.12:37
dpmright, but it seems that on doing expansion, it adds "snap/podpublish/100001 [...]" as a relative path to construct the final path12:37
dpmjust guessing, I don't know the code12:37
flexiondotorgIt just takes the configuration entry.12:37
flexiondotorgfeatured_image=~/Dropbox/UbuntuPodcast/Backdrops/S09E07.jpg12:37
flexiondotorgWhich is that ^12:37
dpmjdstrand, how does HOME get set within a snap? ^12:38
ogra_HOME=/home/ubuntu/snap/hello-world/2512:38
dpm$ hello-world.env | grep HOME12:38
dpmHOME=/home/dpm/snap/hello-world/2312:38
ogra_the prob might be that bash overrides that when expanding  ~12:38
kyrofadpm it's in the binary wrapper or service file12:38
ogra_try using $HOME in the config12:39
flexiondotorgThis is in the wrapper12:39
flexiondotorgexport HOME="$SNAP_USER_DATA12:39
ogra_right12:39
ogra_but you use ~12:39
flexiondotorgYep.12:39
ogra_which could be auto-expanded by the calling shell12:39
flexiondotorgBecause it is defined in an .ini file.12:39
flexiondotorgWhich I don't think would be an uncommon expecation?12:40
ogra_dunno12:40
* ogra_ would try using $HOME in the ini first ... 12:41
ogra_and if that doesnt work, instead generate the ini on first startup instead12:41
ogra_-instead12:41
flexiondotorgConfigObj doesn't expand environment variables.12:42
flexiondotorgThe ini file is human created.12:43
=== chihchun is now known as chihchun_afk
ogra_yes, so make it script created instead ... for the initial file12:44
ogra_then you can use the vars12:44
flexiondotorgogra_, I don't follow.12:46
flexiondotorgMake what a script?12:46
ogra_call a script from the wrapper that checks if there is an init file already .... if there isnt, generate one using the SNAP vars12:46
ogra_*ini12:46
ogra_ppisati, hmpf ... testing the i386 image here i get eth0 on first boot and ens3 on all subsequent ones ... (which makes me end up with an eth0 config that indeed doesnt work after reboot)12:49
ogra_hmm, same with amd6412:52
ogra_i dont get why it changes names12:53
ogra_pitti, ^^^ any idea ?12:53
ogra_(we usually set net.ifnames=0 and should probably do that for x86 arches too ... but still it shouldnt change its name after first boot)12:53
sergiusensstevebiscuit you should ask fgimenez for help wrt to tarmac ;-)13:00
stevebiscuitsergiusens: I was wondering who to bother! the laptop was nearly being thrown out the window13:08
kyrofastevebiscuit, haha13:09
stevebiscuitsergiusens: I'm only acting the part of a front-end developer btw... compiling all the JS assets would be the thing to do and there's no end of ways of doing that. copying the gulfile from webdm would certainly get you going along that path13:10
fgimenezhey stevebiscuit :) what's the problem?13:10
stevebiscuitfgimenez: hello! the machine building https://code.launchpad.net/~stevenwilkin/webdm/add-remove-snaps-via-api/+merge/288437 seems to have run out of disk space13:11
ppisatiogra_: yep, i noticed the name change too13:13
ppisatiogra_: but at least it's consistent here13:14
ppisatii always get ens313:14
ogra_yeah, i just dont get why it changes13:14
ogra_only from the second boot on13:14
ogra_on first boot i see eth013:14
fgimenezstevebiscuit, mmm seems to have enough space http://paste.ubuntu.com/15980970/, let me try merging again13:16
stevebiscuitfgimenez: cool, hopefully the thing actually builds heh13:17
Elleoquick question, can you upload snaps using the reserved permissions (like "x11" or "unity7") to the store? do they require manual approval? was just wondering if that should be mentioned in this sort of discussion: https://www.reddit.com/r/linux/comments/4fwfch/circumventing_ubuntu_snap_confinement/13:23
sborovkovHi. Does this syntax still work? snap isntall snap.name config.yaml13:24
ogra_sborovkov, no13:26
ogra_sborovkov, the config interface is gone (temporary)13:27
sborovkovogra_: Oh, ok, and here I was wondering why my snap's not working after this properly :-)13:27
ogra_yeah, its a bit painful ...13:28
sborovkovHow temporary is that? Should I consider changing how it's working on my side?13:28
ogra_all foxcus was on brining snappy to the desktop for the last weeks ... things like config will come back soon13:28
ogra_it is high on the TODO afaik13:28
flexiondotorgogra_, dpm http://paste.ubuntu.com/15981191/13:29
flexiondotorgI've create python test case, see above.13:29
ogra_yeah, so do what i asid ... generate the ini on first start13:30
ogra_then you get proper paths13:30
ogra_*said13:30
flexiondotorgogra_, You're missing the point.13:35
ogra_am i ?13:36
ogra_your app can only see /home/martin/snap/home-tester/10000113:36
ogra_so your ini needs to point to that13:36
flexiondotorgPython code the tries to reference the home directory either via $HOME or os.path.expanduser() result is being given a directory path that is not the home directory.13:36
seb128ideally things would work out of the box without requesting every app to writer wrappers when they can to use the standard userdir13:36
flexiondotorgAnd is in fact, empty.13:36
ogra_to get the right value in a multi user system you can only grab it on first start13:36
ogra_your app runs inside /home/martin/snap/home-tester/100001 by default13:37
flexiondotorgBut that is not my home directory.13:37
ogra_(if the binary supports it you could also use relative paths)13:37
ogra_bno, it is the home dir of the snap when it gets started13:37
ogra_this is part of app confinement13:37
flexiondotorgSo I am not able to actually access my home directory using snaps unles I create the snap completely unconfined?13:38
ogra_not sure how the home plug actually works ... but the snap subdir was a constraint we had before that13:39
ogra_i'd be surprised if the interface gives you full access to all of home13:39
ogra_you have to ask zyga or niemeyer though13:39
pittiogra_: can you check /proc/cmdline if it still actually has net.ifnames? if you set it on first boot, you indeed need to set it on others too, or disable that udev rule13:42
ogra_pitti, no, x86 doesnt ... so a weird name is expected ... but i dont expect it to change between two reboots13:43
ogra_(i.e. we end up with /etc/network/interfaces.d/eth0 on first boot and an eth0 interface being up ... after reboot there is only ens3)13:48
niemeyerflexiondotorg, ogra: The home interface allows access to files in the user's home which are not hidden (.*).13:54
flexiondotorgniemeyer, Yes, it does.13:55
ogra_niemeyer, but when ui start a snappy app its home points to ~/snap/app-name/10000113:55
flexiondotorgI can point my python, which is snapped, at a file in my home directory and the file is read.13:55
flexiondotorgGood :-)13:55
flexiondotorgHowever, if my file is a configuration file that then want to reference other files in my home directory.13:56
ogra_niemeyer, so apps that use ~/ in a config file get that expanded to  ~/snap/app-name/100001 instead of just ~/13:56
flexiondotorgThe path expansion is to ~/snap/app/#ref#13:56
niemeyerogra_: This dir is always available, even without the interface, and it's where the app should store its own data and control files13:56
flexiondotorgniemeyer, Which is fine.13:57
niemeyerThe home interface is supposed to be used by apps that actually want interaction with user content13:57
niemeyerDownloads, pictures, etc13:57
flexiondotorgBut using  os.path.expanduser() in a snapp Python application doesn't evaluate to /home/me it evaluates to /home/me/snap/app/#ref#13:57
niemeyerWe'll definitely make this more fine grained, but for now that's how we bootatrapped13:58
ogra_niemeyer, but a commandline app that uses ~/myapp/config.conf ... will not look in /home/user/myapp/ for config.conf13:58
ogra_because the ~/ expands to the snap subdir13:58
niemeyerflexiondotorg: That's a good thing because it makes things just work for a lot of apps that want to write on the user's home just to store its own data13:59
asacogra_: was the store for rolling killed too?14:00
flexiondotorgBut also breaks lots of others.14:00
ogra_niemeyer, but it means you need to patch all apps that use ~/ somehow14:00
niemeyerWell, not really.. Most things don't break because they find $HOME elsewhere14:01
flexiondotorgI just happen to have picked 3 applications to snap that simply can't be snapped :-(14:01
niemeyerNote that there's really no perfect answer here..14:01
ogra_well, they could with a wrapper ... :)14:01
niemeyerflexiondotorg: Why?14:01
flexiondotorgA podcast encoder and uploader. Since all the assets exist outside the snap directory.14:02
ogra_as i said ... generate it on first start of the app and everything will have the right paths14:02
flexiondotorgA static site generator.14:02
niemeyerAnd what's the problem with that?14:02
flexiondotorgA dotfile/dotdir backup utility.14:02
niemeyerJust access the assets wherever they are?14:02
flexiondotorgThose applications have established workflow.14:02
sergiusensogra_ `home` interface give access to all unhidden files in $HOME (or should); I'm not sure setting $HOME to $SNAP_USER_DATA is the right thing14:03
niemeyerflexiondotorg: dot files are restricted for now..14:03
ogra_niemeyer, the app has "my_work_dir=~/foo-bar" ... the snap turns that into /home/me/snap/app/#ref# at runtime and doesnt find its config14:03
flexiondotorgniemeyer, Yeah. Get that. Understand why. So no issue.14:03
niemeyerogra_: That's a bit strange.. I don't use any applications that restrict their use to a particular part within $HOME14:05
ogra_niemeyer, http://paste.ubuntu.com/15981191/ thats a test app that flexiondotorg did14:05
sborovkovIs home app for snap persistent? Or will it get created again when snap's version  is changed?14:06
ogra_if you now have a config file that expects ~/app.conf ... it woint look in your home but in the snap subdir14:06
niemeyerYes, and that's exaclty one of the reasons we did it14:07
niemeyerMost likely it won't be in ~/foo.conf, but in ~/.foo.conf, which should be inside /snap/114:07
niemeyersborvkov: you mean the dir?14:08
sborovkovniemeyer: yes.14:09
sborovkovDoes it have persistent data? I mean after I update snap14:10
sborovkovto newer version14:10
niemeyerYeah14:10
ogra_niemeyer, right, but it means that the majority of apps needs a wrapper to mangle the config at runtime or to have a different config patched in at build time14:10
sborovkovok, got it14:11
oobartezhi all, where can i find a list of all desktop apps available as snaps? Sth like the deb repo browsers, ideally online14:11
niemeyersborovkov: It's currently copied over so rollbacks are possible, but we'll likely change how that happens soon.. In either case you can trust it to persist data in there across updates14:11
ogra_oobartez, you can call "snap find" on a xenial desktop14:11
niemeyerogra_: Or they need to do what they always did and write in $HOME14:11
ogra_oobartez, but there isnt much yet (go on, produce some !!!)14:12
ogra_niemeyer, but home isnt home :)14:12
niemeyerSome will need to be changed to be optimal, for sure14:12
ogra_(home isnt the home upstream expects that is)14:12
niemeyerogra_: Yep, and for reasons.. We'll learn whether that's a great idea or not over time, but if we change we'll be breaking other use cases..14:13
niemeyerSo no golden answer, as usual in life :)14:13
ogra_yeah14:13
ogra_well, my personal golden answer is a first start wrapper that simply knows the vars ... but that needs to be written indeed ...14:14
ogra_(when you port an app)14:14
oobartezogra_: this is what I was thinking ;) just kinda want to figure out what types of apps are already converted, and which ones it'd be best to focus on14:14
* ogra_ now wonders what to do with the 16.04 images ... while the amr arches are rather fine, x86 falls apart on second boot :(14:18
ogra_*arm14:18
ogra_i guess i'll wait til monday and sort that with mvo rather than pushing out broken stuff14:20
sergiusensniemeyer ogra_ when using the `home` interface we should probably change where HOME points to (well someone needs to analyze, but as a first thought seems good).14:33
ogra_yeah14:33
ogra_thats kind of what the interface implies :) access to home ... inetad of home/snaps/14:33
jdstranddpm: sorry, I was responding to some other issues14:34
dpmjdstrand, no worries, we've already found that, so 'unping' :-)14:34
dpm*figured it out, I meant14:35
jdstranddpm: do you still need the question answered regarding HOME? (it is via the script in /snap/bin/...)14:35
jdstrandok14:35
dpmall good, thanks14:35
fgimenezstevebiscuit, should be fixed now, btw lots of interesting stuff in there! :) reminds me of old times, phatomjs, karma, lodash sigh..14:36
dpmElleo, I'm not sure if you got your question answered, but I don't think either 'x11' or 'unity7' trigger a manual review. But I think one can double-check that on https://launchpad.net/click-reviewers-tools, which is the same code the store runs14:39
dpmjdstrand, sorry for the many pings today, but perhaps you can answer that one with more authority ^14:39
ogra_perhaps you should write the list you mailed to the ML as a blogpost :)14:40
Elleodpm: ah, okay; so not really an answer to the x11 criticisms then14:42
jdstrandthey do not trigger a manual review14:42
jdstrandbecause that wouldn't help anything (the review would be looking at binaries)14:43
jdstrandogra_: pass14:43
jdstrand:)14:43
Elleojdstrand: is there any warning given to users installing apps with x11/unity7 permissions, maybe that'd be at least a reasonable compromise?14:43
jdstrandpeople are discussing the messaging14:44
jdstrandElleo: not at this time14:44
ogra_hehe14:44
sergiusensjdstrand there is no way out of this, right http://pastebin.ubuntu.com/15982675/ ?14:50
sergiusensjdstrand in the sense that I'll need to patch the code or anything that wants to use QNetworkManager ?14:51
jdstrandthe answer to that is connectivity-api14:51
jdstrandor let people talk to network-manager and live with the info leak14:51
sergiusensjdstrand yeah, I figured; so I need to change the code :-)14:51
sergiusenswell first figure it out ;-)14:51
jdstrandit is hard to take a firm line on the network-manager info leak with GetAll when we are allowing x1114:52
oobartezis there some place where I could find fairly up-to-date statistics of most downloaded packages from the official ubuntu repos?14:56
oobartez*desktop14:57
dpmsergiusens, not sure if you saw the question earlier - so https://github.com/sergiusens/qt5conf works well for binary Qt5 apps, but is there a way to specify a different launch command, for QML apps, for example? Up until now, I've exec'd them so in the wrapper file:14:58
dpm cd $SNAP14:58
dpm exec $SNAP/usr/bin/qmlscene $SNAP/usr/share/ubuntu-clock-app/ubuntu-clock-app.qml14:58
dz0ny_it's getting better zdnet: "Ubuntu 16.04's new Snap format is a security risk"15:05
dz0ny_the gist seems to be that caveat that it is more secure than apt15:05
dz0ny_and "news" organizations have picked that...15:05
=== chihchun_afk is now known as chihchun
sergiusensdpm so doesn't `command: qt5-launch qmlscene $SNAP/usr/share/ubuntu-clock-app/ubuntu-clock-app.qml` should work15:22
sergiusensjdstrand it does ;-)15:23
dougb_Can anyone offer me some guidance on how to enable the available serial ports on a BeagleBone Snappy?15:42
qenghodougb_: enable how? To make character devices that could work, or to talk through them from inside a Snap package?15:51
geneiosDoes anyone have any resources for using snappy with a python 2.7 project?16:17
kyrofageneios, you mean like this? https://github.com/ubuntu-core/snapcraft/tree/master/examples/py2-project16:21
geneiosThat is helpful, I was looking at that earlier. This page here https://developer.ubuntu.com/en/snappy/build-apps/snapcraft-parts/ mentions embedding a Python runtime. I guess I was looking for a "Your First Snap" page using python.16:25
kyrofageneios, yeah anything that uses the python2 plugin will embed the python2 runtime16:27
kyrofageneios, so you should be able to morph that example into what you need16:28
dz0ny_kyrofa: source: https://github.com/markokr/spongeshaker.git#rev supported in snapcraft16:29
kyrofadz0ny_, are you asking me a question? :P16:30
geneioskyrofa, thanks so much! I am going to give it a try and see what happens.16:30
kyrofageneios, no problem-- we're here if you need some help :)16:31
flexiondotorgogra_, dpm, niemeyer Just finished work and read the backlog.16:37
kyrofaHey jdstrand, just to clarify: that systray example worked for you with no devmode?16:38
flexiondotorgWhat if the 'home' plug was really /home/user and a 'data' or 'snapdata' plug were added to provide the current behaviour?16:38
jdstrandkyrofa: it launched, I saw an icon in the launcher (surely just from the desktop file), I clicked stuff and I say notification bubbles. I don't know if it was supposed to do other stuff16:39
jdstrands/I say/I saw/16:39
flexiondotorgPerhaps 'home' with access /home/user should have manual review.16:39
kyrofajdstrand, there wasn't a desktop file included there, but yeah you saw the right stuff... but I only saw it with devmode. Maybe I'm out of date?16:39
flexiondotorgWhere as really confined 'data' apps do not.16:39
kyrofa(checking now)16:40
jdstrandkyrofa: I saw a heart in the launcher...16:40
kyrofajdstrand, oh, the launcher-- how about in the indicators?16:40
jdstrandI didn't see anything in the indicators16:40
kyrofajdstrand, ah, you're supposed to. Try devmode then?16:40
jdstrandbut the one dbus denial wasn't a Unity 7 denial16:40
jdstrandit was some kde dbus denial16:41
jdstrandkyrofa: can you add to the bug more information-- what I'm supposed to see, how I am supposed to see it and any denials?16:41
kyrofajdstrand, huh. I'm no indicator expert either, I just _believe_ it's dbus :P . And since it didn't work without devmode I figured it was a unity7 interface issue16:42
kyrofajdstrand, yeah I'll try to flesh that out a bit more16:42
kyrofajdstrand, also, the indicators-- were they the nice pretty libnotify indicators, or the ugly yellow ones?16:42
kyrofaNot indicators sorry-- notifications16:42
kyrofaBecause those didn't work without devmode either16:43
jdstrandkyrofa: the notification bubble was ugly16:44
kyrofajdstrand, alright I'll put some links to screenshots in there16:45
jdstrandthanks!16:45
kyrofaAnyone else having trouble making their fingers stop after typing "apt" ?16:47
sergiusenselopio https://github.com/ubuntu-core/snapcraft/pull/484 has conflicts for some reason16:48
niemeyer_http://blog.labix.org/2016/04/22/snappy-interfaces16:57
roadmrso, snap install $something fails inside a xenial lxd container, even with nesting and privileged set to true :/ is it desirable to be able to install snaps inside containers?16:59
kyrofajdstrand, updated description17:00
dougb_qengho We have a serial application running on the BBB. We are now using the console port. We want to use one of the other available serial ports, but don't know how to enable them in Snappy Ubuntu.17:09
dpmniemeyer -> https://plus.google.com/u/2/b/100887841569748798697/+Ubuntu/posts/hUKMDYE9bR917:09
niemeyer_dpm: Thanks!17:10
qenghodougb_: the kernel has to support it. I think you'll get far examining "dmesg" and "lsmod" and comparing to BBB that work for you.17:13
=== tedg_ is now known as tedg
guest1221Does anyone know if there was a Snappy 16.04 image for IoT devices released yet?20:31
ogra_not yet20:31
ogra_the first alpha will likely come out next week20:32
guest1221Perfect, thanks!20:32
ogra_there are some experimental image sif you feel brave :)20:32
ogra_*images if20:33
ogra_http://people.canonical.com/~mvo/all-snaps/20:33
guest1221I don't think our code is ready for that yet, but that will help us prepare for the coming changes.  Thanks a lot!20:34
=== jgrimm is now known as jgrimm-afk
mcphailstgraber: is it possible to run snappy  within lxc/d yet?23:50
tsimonq2my bet is yes23:50

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!