The Computer Oracle

Prevent Chrome from automatically opening downloaded PDF and Image files

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT


Music by Eric Matyas
https://www.soundimage.org
Track title: Future Grid Looping

--

Chapters
00:00 Prevent Chrome From Automatically Opening Downloaded Pdf And Image Files
00:52 Accepted Answer Score 18
02:03 Answer 2 Score 11
02:37 Answer 3 Score 4
03:39 Answer 4 Score 0
03:50 Thank you

--

Full question
https://superuser.com/questions/408243/p...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #googlechrome #download

#avk47



ACCEPTED ANSWER

Score 18


You can set the auto-open preferences for PDF files by clicking on the download status button in the downloads bar. When you have a downloaded PDF sitting there, click on the arrow and unselect "Always Open Files of This Type" in the pop-up menu.

You can also reset all the user preferences for auto-open by following the directions below from Chrome's help site at http://support.google.com/chrome/bin/answer.py?hl=en&answer=95759

If you want certain types of files to always open after they're done downloading, click the arrow next to the file button in the downloads bar and select Always open files of this type. To prevent potentially malicious files from automatically downloading to your computer, this option isn't available for executable filetypes, such as those with .exe, .dll, or .bat extensions (for Windows), and .dmg extensions (for Mac).

You can clear auto-opening settings through the Settings dialog. Here's how:

Click the wrench icon on the browser toolbar. Select Settings. Click the Under the Hood tab. In the "Downloads" section, click Clear auto-opening settings. This clears your settings for all file types. Click Close when you're done, if you're using Windows or Linux.




ANSWER 2

Score 11


Here is what I have done and it worked for me. Apparently this is not an OS issue, it is rather a browser issue.

If you are using Google Chrome, go to settings, then go to the very bottom of the page and click on "Show Advanced Settings" then under 'DOWNLOADS' uncheck the part that says you have opted to open some files by default.

If you are using Safari, open Safari preferences and on the general tab, uncheck "automatically open safe files" since Safari has this as a default option and unfortunately, pics that open are considered safe files.




ANSWER 3

Score 4


On Mac, the above answers were not enough for me unfortunately to stop auto-opening of PDFs in Preview by Chrome.

The answer was to manually edit the preferences files for Chrome.

First, quit all running instances of Chrome.

Then, run this in your Terminal:

# Go to Chrome directory:
cd ~/Library/Application\ Support/Google/Chrome 

# List files that have any open_pdf settings:
grep -rl open_pdf .

Open each Preferences file listed in your text editor (this will be 1 or more Preferences files depending on the number of User Profiles you have set up in Chrome), and find all the always_open_pdf_externally and open_pdf_in_system_reader preferences. Change them so they are false:

"open_pdf_in_system_reader":false

"always_open_pdf_externally":false

Next, save changes and close the Preferences file(s).

Finally, open Chrome and see if this has helped. PDF downloads should not be auto-opened any longer.




ANSWER 4

Score 0


This is a known issue that was recently fixed. Eventually you will get an update that includes the fix.

https://bugs.chromium.org/p/chromium/issues/detail?id=680202