Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Low Display Version on Retina #9

Closed
anlek opened this issue Apr 18, 2013 · 6 comments
Closed

Running Low Display Version on Retina #9

anlek opened this issue Apr 18, 2013 · 6 comments

Comments

@anlek
Copy link

anlek commented Apr 18, 2013

I originally came across this idea reading this article: http://lifehacker.com/5611711/create-application-shortcuts-in-google-chrome-for-mac-with-a-shell-script

I made a gitlab app, and am having a problem uploading files (the window comes behind the browser and I'm unable to upload) so I tired your script, and for some reason, it gives me Chrome window running non retina version. See screenshot:

Screenshot_2013-04-18_6_24_PM-2

@lhl
Copy link
Owner

lhl commented Apr 19, 2013

Hmm weird, if you want to try a fix and are handy w/ some basic text editing foo, go into the App Contents and edit the file: $APPNAME.app/Contents/MacOS/$APPNAME - it's just a bash script that launches Chrome. You can try to add " --force-device-scale-factor=2" to see if you can force Retina rendering?

I don't have a retina display so if that doesn't work I'm not gonna be able to help you until a Retina MBA comes out but maybe someone else can take a look?

@stephenmckinney
Copy link

That didn't work for me. My bash script is the following:

#!/bin/bash
ABSPATH=$(cd "$(dirname "$0")"; pwd)
exec "$ABSPATH/Gmail Chrome" --force-device-scale-factor=2 --app="https://mail.google.com" --user-data-dir="$ABSPATH/../Profile" "$@"

@aerickson
Copy link
Contributor

Confirming this problem. Adding the force-device-scale-factor argument didn't work for me either.

Very strange.

@aerickson
Copy link
Contributor

fix via: http://apple.stackexchange.com/questions/69038/open-in-low-resolution-checkbox-on-retina-macbook-pro-checked-and-disabled

Add this to the APP.app/Contents/Info.plist before the ending tag.

NSHighResolutionCapable
True

Works great for me.

@aerickson
Copy link
Contributor

Looks like we can fix the code that generates the apps by inserting this block after line 83 in https://github.com/lhl/chrome-ssb-osx/blob/master/chrome-ssb.sh.

@lhl
Copy link
Owner

lhl commented Sep 25, 2013

Merged from 8a8fb82 so closing.

@lhl lhl closed this as completed Sep 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants