]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Don't append --force-device-scale-factor to process.argv
authorCheng Zhao <zcbenz@gmail.com>
Tue, 21 Oct 2014 12:55:37 +0000 (20:55 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 21 Oct 2014 12:55:37 +0000 (20:55 +0800)
atom/browser/lib/init.coffee

index a00e9adcac0009b5c6393050bf86a15354a1a6c6..7bf9e4e13906de6d1ce675bc0f7ac4dcae92a752 100644 (file)
@@ -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,