]> khamidou — GitHub mirrors - electron.git/commitdiff
Update as upstream
authorPlusb Preco <plusb21@gmail.com>
Fri, 27 Nov 2015 08:28:09 +0000 (17:28 +0900)
committerPlusb Preco <plusb21@gmail.com>
Fri, 27 Nov 2015 08:28:09 +0000 (17:28 +0900)
docs-translations/ko-KR/README.md
docs-translations/ko-KR/api/app.md
docs-translations/ko-KR/api/environment-variables.md [new file with mode: 0644]

index e6ea629c1e0ac7e3ddaef106890b0f482a479edb..e7aae9e6d6fa8f8d15b653ef9d2dacd875c320f7 100644 (file)
@@ -34,6 +34,7 @@ GitHub 프로젝트내에서만 볼 수 있고 `master` 브랜치의 문서는 
 * [개요](api/synopsis.md)
 * [Process 객체](api/process.md)
 * [크롬 명령줄 스위치 지원](api/chrome-command-line-switches.md)
+* [환경 변수](api/environment-variables.md)
 
 ### 커스텀 DOM elements:
 
index d41ce1ab37b98e5c79f6667fae659570ebfc0519..095e7b39c626eaa708159abd175a71d1f6f978a2 100644 (file)
@@ -70,7 +70,7 @@ Returns:
 
 어플리케이션이 종료될 때 발생하는 이벤트입니다.
 
-### Event: 'open-file'
+### Event: 'open-file' _OS X_
 
 Returns:
 
@@ -87,7 +87,9 @@ Returns:
 
 이 이벤트를 처리할 땐 반드시 `event.preventDefault()`를 호출해야 합니다.
 
-### Event: 'open-url'
+Windows에선 `process.argv`를 통해 파일 경로를 얻을 수 있습니다.
+
+### Event: 'open-url' _OS X_
 
 Returns:
 
diff --git a/docs-translations/ko-KR/api/environment-variables.md b/docs-translations/ko-KR/api/environment-variables.md
new file mode 100644 (file)
index 0000000..11d3506
--- /dev/null
@@ -0,0 +1,49 @@
+# 환경 변수
+
+Electron의 몇몇 동작은 명령 줄과 어플리케이션의 코드보다 먼저 초기화되어야 하므로 환경 변수에 의해 작동합니다.
+
+POSIX 쉘의 예시입니다:
+
+```bash
+$ export ELECTRON_ENABLE_LOGGING=true
+$ electron
+```
+
+Windows 콘솔의 예시입니다:
+
+```powershell
+> set ELECTRON_ENABLE_LOGGING=true
+> electron
+```
+
+## `ELECTRON_RUN_AS_NODE`
+
+프로세스를 일반 Node.js 프로세스처럼 시작합니다. (electron 모듈 제외)
+
+## `ELECTRON_ENABLE_LOGGING`
+
+Chrome의 내부 로그를 콘솔에 출력합니다.
+
+## `ELECTRON_ENABLE_STACK_DUMPING`
+
+Electron이 크래시되면, 콘솔에 stack trace를 출력합니다.
+
+이 환경 변수는 `crashReporter`가 시작되지 않았을 경우 작동하지 않습니다.
+
+## `ELECTRON_DEFAULT_ERROR_MODE` _Windows_
+
+Electron이 크래시되면, 크래시 정보 창을 표시합니다.
+
+이 환경 변수는 `crashReporter`가 시작되지 않았을 경우 작동하지 않습니다.
+
+## `ELECTRON_NO_ATTACH_CONSOLE` _Windows_
+
+현재 콘솔 세션에 소속시키지 않습니다.
+
+## `ELECTRON_FORCE_WINDOW_MENU_BAR` _Linux_
+
+Linux의 글로벌 메뉴 막대를 사용하지 않습니다.
+
+## `ELECTRON_HIDE_INTERNAL_MODULES`
+
+`require('ipc')`같은 예전 방식의 빌트인 모듈을 비활성화합니다.