From 0d19e772e6d520a5ddd881be30cdfa671aca449b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 21 Oct 2014 20:55:37 +0800 Subject: [PATCH] linux: Don't append --force-device-scale-factor to process.argv --- atom/browser/lib/init.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/lib/init.coffee b/atom/browser/lib/init.coffee index a00e9adcac0..7bf9e4e1390 100644 --- a/atom/browser/lib/init.coffee +++ b/atom/browser/lib/init.coffee @@ -14,6 +14,8 @@ process.argv.splice 1, 1 # Pick out switches appended by atom-shell. startMark = process.argv.indexOf '--atom-shell-switches-start' endMark = process.argv.indexOf '--atom-shell-switches-end' +# And --force-device-scale-factor on Linux. +endMark++ if process.platform is 'linux' process.argv.splice startMark, endMark - startMark + 1 # Add browser/api/lib to require's search paths,