Skip to content

Instantly share code, notes, and snippets.

@vbatts
Created June 10, 2015 14:02
Show Gist options
  • Save vbatts/1b4b54f13990345ce165 to your computer and use it in GitHub Desktop.
Save vbatts/1b4b54f13990345ce165 to your computer and use it in GitHub Desktop.
fix the scaling in chrome, without passing flags everywhere. (google-chrome-stable-43.0.2357.124-1.x86_64) (https://twitter.com/vbatts/status/608393019465859074)
--- /tmp/orig 2015-06-10 10:00:10.403089775 -0400
+++ /opt/google/chrome/google-chrome 2015-06-10 10:00:14.350098293 -0400
@@ -78,7 +78,7 @@ exec 2> >(exec cat >&2)
if [[ -n "$CHROME_USER_DATA_DIR" ]]; then
# Note: exec -a below is a bashism.
exec -a "$0" "$HERE/chrome" \
- --user-data-dir="$CHROME_USER_DATA_DIR" "$@"
+ --user-data-dir="$CHROME_USER_DATA_DIR" --force-device-scale-factor=1 "$@"
else
- exec -a "$0" "$HERE/chrome" "$@"
+ exec -a "$0" "$HERE/chrome" --force-device-scale-factor=1 "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment