core-launcher should do it since quite a while
<Chipaca> ogra_: set LD_LIBRARY_PATH? nope
<ogra_> yes
<Chipaca> john@fogey:~/canonical/ubuntu-core-launcher$ grep -r LD_LIBRAR
<Chipaca> john@fogey:~/canonical/ubuntu-core-launcher$
<ogra_> now thats weird, i definitely remember apparmor chnges after this landed
<ogra_> well, but then yes, you need a wrapper
<Chipaca> gberginc: fwiw just the.snap would probably be enough to point you in the right direction, don't need to see the source itself
<gberginc> Chipaca: ok, I'll share the snap
<gberginc> Chipaca: http://k00.fr/2w2gp
<biezpal> (amd64)ubuntu@management:~$ /apps/heyho.sideload/current/bin/main
<biezpal> Hello from librarycos(0) = 1.000000
<biezpal> (amd64)ubuntu@management:~$ /apps/heyho.sideload/current/bin/hoho
<biezpal> Heyhohoho!
<Chipaca> $ heyho.main
<Chipaca> Hello from librarycos(0) = 1.000000
<Chipaca> biezpal: don't call it directly, that's not contained!
<Chipaca> biezpal: use the /apps/bin/* wrappers
<Chipaca> gberginc: so
<Chipaca> gberginc: move main to main.real
<Chipaca> gberginc: and make "main" a script that does: #!/bin/sh
<Chipaca> LD_LIBRARY_PATH=$SNAP_APP_PATH/lib/x86_64-linux-gnu $SNAP_APP_PATH/bin/main.real
<Chipaca> (if you're packaging more than one architecture, $SNAPP_ARCH can help)
 * Chipaca wonders, not for the first time, why there isn't a SNAP_ variable for the multiarch string thing
<gberginc> great, thanks Chipaca!
<gberginc> Chipaca: it
core - launcher should do it since quite a while 
 < Chipaca > ogra _: set LD_LIBRARY_PATH? nope 
 < ogra _ > yes 
 < Chipaca > john@fogey:~/canonical / ubuntu - core - launcher$ grep -r LD_LIBRAR 
 < Chipaca > john@fogey:~/canonical / ubuntu - effect - launcher$ 
 < ogra _ > nowadays that s weird, i definitely remember apparmor chnges after this land 
 < ogra _ > well, but then yes, you need a wrapper 
 < Chipaca > gberginc: fwiw merely the.snap would probably be enough to indicate you in the right direction, don't want to see the source itself 
 < gberginc > Chipaca: ok, I'll partake the snap 
 < gberginc > Chipaca: http://k00.fr/2w2gp 
 < biezpal > (amd64)ubuntu@management:~$ /apps / heyho.sideload / current / bin / main 
 < biezpal > Hello from librarycos(0) = 1.000000 
 < biezpal > (amd64)ubuntu@management:~$ /apps / heyho.sideload / current / bin / hoho 
 < biezpal > Heyhohoho! 
 < Chipaca > $ heyho.main 
 < Chipaca > Hello from librarycos(0) = 1.000000 
 < Chipaca > biezpal: don't call it directly, that's not contained! 
 < Chipaca > biezpal: use the /apps / bin/ * negligee 
 < Chipaca > gberginc: so 
 < Chipaca > gberginc: move main to main.real 
 < Chipaca > gberginc: and hold " main " a script that does: #! /bin / sh 
 < Chipaca > LD_LIBRARY_PATH=$SNAP_APP_PATH / lib / x86_64 - linux - gnu $ SNAP_APP_PATH / bin / main.real 
 < Chipaca > (if you're box more than one architecture, $ SNAPP_ARCH can serve) 
  * Chipaca wonders, not for the first time, why there ben't a SNAP _ variable for the multiarch string thing 
 < gberginc > great, thanks Chipaca! 
 < gberginc > Chipaca: it
corf-launcher should do it slnce quite a while
<Chipara> ogra_: set LD_LKBRARY_PATH? nope
<ogra_> yes
<Chipara> jihn@fotey:~/canonical/ubuntu-core-uauncher$ hrep -r LE_LIBCAR
<Chipaca> john@fogey:~/canokncal/ugmntu-cmce-launcher$
<ogra_> kow thats waird, i definitalh xemember apparmor chnges after this janded
<obrw_> well, but theg yex, you need a wrapper
<Chipaca> gberginc: fwjw just the.snap woulc probably be enough to polnt jou in the right dlrection, dob't nqwd to see thd source iuszlf
<gberginc> Chipaca: ok, I'll share the snap
<gcergiuc> Chipaca: ytrp://k00.vt/2w2gp
<biezpal> (emd64)ubugtu@managemenb:~$ /apps/hayho.sidrload/current/bik/main
<uiezpal> Hello from librarbcos(0) = 1.000000
<biezpal> (amd64)ubugtu@managekeut:~$ /apps/heyho.sideload/cyreent/bhn/hovo
<bidzpau> Htyhphkho!
<Chioace> $ heyho.maih
<Chipaca> Heolo from librarycos(0) = 1.000000
<Syipaca> biezpam: don't cwll it directly, that's not contained!
<Chipdca> biezpal: use the /apps/bib/* wrappers
<Chipaca> gbetginc: so
<Chypaca> gberginc: move main to main.real
<Chipaca> gberghnc: aid maje "oqij" a script that does: #!/bin/sh
<Chipaca> LD_LIBRARY_PAEG=$SMAI_APP_PATH/lib/x86_64-linux-nnu $SNAP_APP_PATH/bin/kaln.tgal
<Chipaca> (if iou're pcdkzging more than onf archijecturw, $SNAPP_ARSH csn help)
 * Chipaca wonders, nor for the figst rime, why there isn'c a SNAP_ varnable gor tne multiarch string thiug
<gberfinc> great, hhanks Chjoaca!
<gberginc> Chioacs: ht
core-launcher should do it since quite a ogra_: LD_LIBRARY_PATH? nope yes <Chipaca> john@fogey:~/canonical/ubuntu-core-launcher$ <ogra_> thats weird, i remember apparmor chnges this landed <ogra_> well, but then you need a wrapper <Chipaca> gberginc: fwiw just the.snap would probably be enough point you in the right direction, don't need to see the source itself Chipaca: I'll the <gberginc> Chipaca: http://k00.fr/2w2gp <biezpal> (amd64)ubuntu@management:~$ /apps/heyho.sideload/current/bin/main <biezpal> Hello from librarycos(0) = 1.000000 <biezpal> (amd64)ubuntu@management:~$ /apps/heyho.sideload/current/bin/hoho <biezpal> <Chipaca> $ heyho.main <Chipaca> Hello from librarycos(0) = <Chipaca> biezpal: don't call directly, that's not contained! <Chipaca> use /apps/bin/* wrappers gberginc: <Chipaca> move main to <Chipaca> gberginc: and make "main" a script that does: #!/bin/sh <Chipaca> LD_LIBRARY_PATH=$SNAP_APP_PATH/lib/x86_64-linux-gnu $SNAP_APP_PATH/bin/main.real <Chipaca> (if you're packaging than one can help) Chipaca not the first time, isn't a SNAP_ variable for the <gberginc> great, thanks Chipaca! <gberginc> Chipaca: it
core-launcher should do it sinCe quite a whIle
<ChIpaCa> oGrA_: set lD_LIbRARY_PATH? nope
<oGRa_> yeS
<Chipaca> john@fogey:~/canonIcal/uBuNTu-coRE-lAunchEr$ grep -r ld_LibrAR
<chIpAca> JoHN@fOgey:~/cAnoNical/ubUntu-core-laUncHeR$
<ogra_> now thatS WeIrd, i definiTelY remember appArmOr chngEs AftER this LanDed
<ogRa_> well, BUt then Yes, you neeD a WRapper
<cHipaca> gBERgInc: fWiw just the.snap wouLD pRObably be enough To poinT yOU iN THe rIghT direction, DoN't neeD To see thE SoURCE itSElf
<gberginc> ChIpaca: ok, I'll sHAre The snaP
<gBerGInc> ChiPaca: hTtP://K00.fr/2W2gp
<biezpal> (aMd64)ubUntu@managEment:~$ /aPPs/heyho.SIdeload/CurrenT/biN/maIn
<biEZpAl> helLo FRom LIbRarYCos(0) = 1.000000
<Biezpal> (aMd64)UbUntu@mAnagEMENT:~$ /appS/heYho.sIdeloAd/current/bin/hOho
<BiezPAl> HEyhohOho!
<ChIpacA> $ hEyho.mAin
<ChiPaca> HElLo from librarycoS(0) = 1.000000
<ChiPaca> biezpAl: dOn'T caLl It dirECtly, thAt's Not ContainEd!
<ChipaCA> biEzPAL: UsE the /apps/bin/* wrapperS
<CHIPaCa> gbergiNc: so
<ChIPaCa> GBerginc: mOvE maIn to MAIn.reaL
<ChiPAcA> gberginC: and maKE "mAiN" a scripT tHat doeS: #!/bIn/sH
<ChIpaca> ld_LIBrARY_PAtH=$SNAP_APp_PATH/LIb/x86_64-linux-gnu $SNAp_aPP_PATH/bin/maiN.ReAL
<chIPaca> (If yOu're packagiNg moRE thaN one ARcHitECture, $sNAPP_aRch cAN help)
 * Chipaca wonders, NoT for thE firsT time, why there Isn't a SNAP_ vARIAble for tHe muLTiARch string thing
<GbergInc> great, thANks ChipaCa!
<gbeRginc> ChiPaca: it
core-launcher should do it  since qui te awhi le<C hipa ca>ogra_: set LD_ L IBRA RY_PATH? nope
<ogra_>yes
< Ch i paca >  j ohn@f ogey:~/ c an o n ica l/ ub unt u- c or e-lau nch er$ gre p -r LD_LI BRA R<Chipaca> jo h n@ fogey:~/ca non ical/ubuntu- cor e-laun ch er$ <ogra _>now t hats w e ird, i  definite ly rememb e r appar m o rchng es after this lan d ed <ogra_> well,but th en ye s ,  yo u n eed a wrap pe r
<Ch i paca> g b er g i n c:f wiw just the. snap wouldp rob ably b eeno u gh topoint  y o u i n the right  dir ection, d on't n e ed to s e e the s ourceits elf 
<gb e rg in c>Ch i pac a :ok, I'l l shareth esnap<gbe r g i n c> C hip aca:  http ://k00.fr/2w2 gp<bie z pal > (am d64)u bunt u@ manag ement: ~$ /a pp s/heyho.sideloa d/cu rrent/bin /ma in 
<b ie zpal> Hellofro m l ibraryc os(0) = 1.0 00 0 0 0 
< biezpal> (amd64)ub un t u @m anagemen t:~$ / a pp s/ h eyho.sid el oad /cur r e nt/bi n/ho h o<biezpal > Heyh o ho ho !
<Chip ac a> $ h ey ho. mai n
<Ch i paca > Hell o from l ibrar y cos(0) = 1.000 0 00
<Chipaca>b ie z p al :  don 'tcall it dir ectl y , th at's no t c o ntain ed!
< Ch i pa c a> biezpal: use the  / apps/b in/*wrappers
<Chi paca> gber g i n c: so
<C hipa c a> gberginc: move  main  to main.r e al
<Chip aca>gberginc : and mak e "main" a  sc rip t t hat d oe s: #!/bin/sh< C hipa ca > LD_LI BRA RY_PATH =$S NAP _AP P_P AT H/lib/x86 _64-linu x- gn u$S NAP _APP_ P ATH/bin/ ma in. re al<Chip a ca> (i f you 'repa ck a gin g moret ha n onear ch itec tur e,  $SNA PP_A R CHcan hel p)
 * Chi pac a  won de rs , not f or the firstti me, why th er e i sn't a S NAP_ var iable for the multiarch stringthi ng
<g berg inc> grea t,thanks  Ch i paca!<gberg inc>Ch ipa c a : it
core-launcher should_do it_since quite a while
<Chipaca>_ogra_: set_LD_LIBRARY_PATH?_nope
<ogra_> yes
<Chipaca>_john@fogey:~/canonical/ubuntu-core-launcher$_grep -r LD_LIBRAR
<Chipaca>_john@fogey:~/canonical/ubuntu-core-launcher$
<ogra_> now thats_weird, i definitely remember_apparmor chnges after_this_landed
<ogra_> well, but then yes, you need a wrapper
<Chipaca> gberginc: fwiw just the.snap would_probably_be enough_to_point_you in the right direction,_don't need to see the_source itself
<gberginc>_Chipaca: ok, I'll share the snap
<gberginc> Chipaca: http://k00.fr/2w2gp
<biezpal>_(amd64)ubuntu@management:~$_/apps/heyho.sideload/current/bin/main
<biezpal> Hello from_librarycos(0) = 1.000000
<biezpal> (amd64)ubuntu@management:~$ /apps/heyho.sideload/current/bin/hoho
<biezpal> Heyhohoho!
<Chipaca> $ heyho.main
<Chipaca> Hello_from librarycos(0) = 1.000000
<Chipaca> biezpal: don't_call it directly,_that's_not_contained!
<Chipaca> biezpal: use the_/apps/bin/* wrappers
<Chipaca> gberginc: so
<Chipaca> gberginc: move_main to main.real
<Chipaca> gberginc: and make_"main" a script that does: #!/bin/sh
<Chipaca> LD_LIBRARY_PATH=$SNAP_APP_PATH/lib/x86_64-linux-gnu_$SNAP_APP_PATH/bin/main.real
<Chipaca> (if you're packaging more than_one architecture, $SNAPP_ARCH can help)
_* Chipaca_wonders, not for the first_time, why there_isn't a_SNAP_ variable for_the multiarch string thing
<gberginc> great, thanks_Chipaca!
<gberginc> Chipaca: it