Skip to content

Commit 0866942

Browse files
committed
adding comments
1 parent 9d5b4b6 commit 0866942

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/kiosk_test/application.ex

+5-1
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,16 @@ defmodule KioskTest.Application do
5454
def init_kiosk(udev_init \\ true) do
5555
if udev_init, do: platform_init_events()
5656

57+
# Need to set the cache dir to not reside in /tmp/...
5758
System.put_env("XDG_RUNTIME_DIR", "/root/cache/")
59+
# Not sure these are needed now... but it's working and it's late ;)
5860
System.put_env("QTWEBENGINE_CHROMIUM_FLAGS", " --no-sandbox --remote-debugging-port=1234 ")
5961

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:
6065
File.rm_rf "/root/shm"
6166
File.mkdir_p! "/root/shm"
62-
# File.rmdir! "/dev/shm"
6367
File.rm_rf "/dev/shm"
6468
File.ln_s! "/root/shm", "/dev/shm"
6569

0 commit comments

Comments
 (0)