Commit 0866942 1 parent 9d5b4b6 commit 0866942 Copy full SHA for 0866942
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,16 @@ defmodule KioskTest.Application do
54
54
def init_kiosk ( udev_init \\ true ) do
55
55
if udev_init , do: platform_init_events ( )
56
56
57
+ # Need to set the cache dir to not reside in /tmp/...
57
58
System . put_env ( "XDG_RUNTIME_DIR" , "/root/cache/" )
59
+ # Not sure these are needed now... but it's working and it's late ;)
58
60
System . put_env ( "QTWEBENGINE_CHROMIUM_FLAGS" , " --no-sandbox --remote-debugging-port=1234 " )
59
61
62
+ # webengine (aka chromium) uses /dev/shm for shared memory.
63
+ # On Nerves it maps to devtmpfs which is waay too small.
64
+ # Haven't found an option to set the shm file, so we get this hack:
60
65
File . rm_rf "/root/shm"
61
66
File . mkdir_p! "/root/shm"
62
- # File.rmdir! "/dev/shm"
63
67
File . rm_rf "/dev/shm"
64
68
File . ln_s! "/root/shm" , "/dev/shm"
65
69
You can’t perform that action at this time.
0 commit comments