@@ -4,9 +4,12 @@ exports[`custom env 1`] = `
44Object {
55 " apps" : Object {
66 " sep" : Object {
7- " command" : " command-sep.wrapper" ,
7+ " adapter" : " none" ,
8+ " command" : " bin/desktop-launch $SNAP/sep" ,
89 " environment" : Object {
910 " FOO" : " bar" ,
11+ " LD_LIBRARY_PATH" : " $SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/x86_64-linux-gnu/mesa-egl:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu" ,
12+ " PATH" : " $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" ,
1013 " TMPDIR" : " $XDG_RUNTIME_DIR" ,
1114 },
1215 " plugs" : Array [
@@ -42,8 +45,11 @@ exports[`default stagePackages 1`] = `
4245Object {
4346 " apps" : Object {
4447 " sep" : Object {
45- " command" : " desktop-launch $SNAP/sep" ,
48+ " adapter" : " none" ,
49+ " command" : " bin/desktop-launch $SNAP/sep" ,
4650 " environment" : Object {
51+ " LD_LIBRARY_PATH" : " $SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/x86_64-linux-gnu/mesa-egl:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu" ,
52+ " PATH" : " $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" ,
4753 " TMPDIR" : " $XDG_RUNTIME_DIR" ,
4854 },
4955 " plugs" : Array [
@@ -99,8 +105,11 @@ exports[`default stagePackages 3`] = `
99105Object {
100106 " apps" : Object {
101107 " sep" : Object {
102- " command" : " desktop-launch $SNAP/sep" ,
108+ " adapter" : " none" ,
109+ " command" : " bin/desktop-launch $SNAP/sep" ,
103110 " environment" : Object {
111+ " LD_LIBRARY_PATH" : " $SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/x86_64-linux-gnu/mesa-egl:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu" ,
112+ " PATH" : " $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" ,
104113 " TMPDIR" : " $XDG_RUNTIME_DIR" ,
105114 },
106115 " plugs" : Array [
@@ -158,8 +167,11 @@ exports[`default stagePackages 5`] = `
158167Object {
159168 " apps" : Object {
160169 " sep" : Object {
161- " command" : " desktop-launch $SNAP/sep" ,
170+ " adapter" : " none" ,
171+ " command" : " bin/desktop-launch $SNAP/sep" ,
162172 " environment" : Object {
173+ " LD_LIBRARY_PATH" : " $SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/x86_64-linux-gnu/mesa-egl:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu" ,
174+ " PATH" : " $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" ,
163175 " TMPDIR" : " $XDG_RUNTIME_DIR" ,
164176 },
165177 " plugs" : Array [
@@ -217,8 +229,11 @@ exports[`default stagePackages 7`] = `
217229Object {
218230 " apps" : Object {
219231 " sep" : Object {
220- " command" : " desktop-launch $SNAP/sep" ,
232+ " adapter" : " none" ,
233+ " command" : " bin/desktop-launch $SNAP/sep" ,
221234 " environment" : Object {
235+ " LD_LIBRARY_PATH" : " $SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/x86_64-linux-gnu/mesa-egl:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu" ,
236+ " PATH" : " $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" ,
222237 " TMPDIR" : " $XDG_RUNTIME_DIR" ,
223238 },
224239 " plugs" : Array [
@@ -274,6 +289,122 @@ Object {
274289}
275290` ;
276291
292+ exports [` plugs option 1` ] = `
293+ Object {
294+ " apps" : Object {
295+ " testapp" : Object {
296+ " adapter" : " none" ,
297+ " command" : " bin/desktop-launch $SNAP/testapp" ,
298+ " environment" : Object {
299+ " LD_LIBRARY_PATH" : " $SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/x86_64-linux-gnu/mesa-egl:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu" ,
300+ " PATH" : " $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" ,
301+ " TMPDIR" : " $XDG_RUNTIME_DIR" ,
302+ },
303+ " plugs" : Array [
304+ " browser-sandbox" ,
305+ " another-simple-plug-name" ,
306+ ],
307+ },
308+ },
309+ " confinement" : " strict" ,
310+ " description" : " Test Application (test quite “ #378)" ,
311+ " grade" : " stable" ,
312+ " icon" : " snap/gui/icon.png" ,
313+ " name" : " testapp" ,
314+ " parts" : Object {
315+ " app" : Object {
316+ " after" : Array [
317+ " desktop-gtk2" ,
318+ ],
319+ " plugin" : " dump" ,
320+ " stage-packages" : Array [
321+ " libasound2" ,
322+ " libgconf2-4" ,
323+ " libnotify4" ,
324+ " libnspr4" ,
325+ " libnss3" ,
326+ " libpcre3" ,
327+ " libpulse0" ,
328+ " libxss1" ,
329+ " libxtst6" ,
330+ ],
331+ },
332+ },
333+ " plugs" : Object {
334+ " browser-sandbox" : Object {
335+ " allow-sandbox" : true ,
336+ " interface" : " browser-support" ,
337+ },
338+ },
339+ " summary" : " Test App ßW" ,
340+ " version" : " 1.1.0" ,
341+ }
342+ ` ;
343+
344+ exports [` plugs option 2` ] = `
345+ Object {
346+ " linux" : Array [],
347+ }
348+ ` ;
349+
350+ exports [` plugs option 3` ] = `
351+ Object {
352+ " apps" : Object {
353+ " testapp" : Object {
354+ " adapter" : " none" ,
355+ " command" : " bin/desktop-launch $SNAP/testapp" ,
356+ " environment" : Object {
357+ " LD_LIBRARY_PATH" : " $SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/x86_64-linux-gnu/mesa-egl:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH:$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu" ,
358+ " PATH" : " $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" ,
359+ " TMPDIR" : " $XDG_RUNTIME_DIR" ,
360+ },
361+ " plugs" : Array [
362+ " browser-sandbox" ,
363+ " another-simple-plug-name" ,
364+ ],
365+ },
366+ },
367+ " confinement" : " strict" ,
368+ " description" : " Test Application (test quite “ #378)" ,
369+ " grade" : " stable" ,
370+ " icon" : " snap/gui/icon.png" ,
371+ " name" : " testapp" ,
372+ " parts" : Object {
373+ " app" : Object {
374+ " after" : Array [
375+ " desktop-gtk2" ,
376+ ],
377+ " plugin" : " dump" ,
378+ " stage-packages" : Array [
379+ " libasound2" ,
380+ " libgconf2-4" ,
381+ " libnotify4" ,
382+ " libnspr4" ,
383+ " libnss3" ,
384+ " libpcre3" ,
385+ " libpulse0" ,
386+ " libxss1" ,
387+ " libxtst6" ,
388+ ],
389+ },
390+ },
391+ " plugs" : Object {
392+ " browser-sandbox" : Object {
393+ " allow-sandbox" : true ,
394+ " interface" : " browser-support" ,
395+ },
396+ },
397+ " summary" : " Test App ßW" ,
398+ " version" : " 1.1.0" ,
399+ }
400+ ` ;
401+
402+ exports [` plugs option 4` ] = `
403+ Object {
404+ " linux" : Array [],
405+ }
406+ ` ;
407+
277408exports [` snap 1` ] = `
278409Object {
279410 " linux" : Array [
0 commit comments