0

In Chrome I have used a custom profile folder at C:\Pocket\Chrome. Whenever I open Chrome, I use the path C:\Users\Joseph\AppData\Local\Google\Chrome\Application\chrome.exe --user-data-dir=c:\pocket\chrome so everything is fine.

However the problem is that whenever I open a PDF file (Chrome is my default PDF viewer), it doesn't use the extension --user-data-dir=c:\pocket\chrome so it becomes the "default profile". (Now this is obvious since Chrome open PDF files in "tabs" and If I Ctrl + N it will show the homepage of the "default profile", verifying that it's not using my targeted profile)

I was wondering how do I fix this problem?

==
Windows Vista Home Premium SP 2

fixer1234
  • 27,064
  • 61
  • 75
  • 116
Pacerier
  • 26,733
  • 82
  • 197
  • 273

1 Answers1

0

I will keep the instructions below for reference.

Windows XP

My Windows is not set to English, so the interface controls can be a bit different.

  • Open Folder Options (should be in the Control Panel or in My Computer)
  • Select the File Types tab
  • Select the PDF extension and click Advanced
  • Select the Open action and click Edit...
  • Set the application field to C:\Users\Joseph\AppData\Local\Google\Chrome\Application\Chrome.exe --user-data-dir=C:\Pocket\Chrome "%1"

Windows 7

  • Open the Windows Registry Editor (Win+RRegEdit)
  • Go to HKEY_CLASSES_ROOT\.pdf. If the (Default) value has any data set, go to the key specified in there.
  • Change the data of the (Default) value in the shell\open\command subkey to C:\Users\Joseph\AppData\Local\Google\Chrome\Application\Chrome.exe --user-data-dir=C:\Pocket\Chrome "%1"
Aluísio A. S. G.
  • 2,878
  • 1
  • 16
  • 14
  • hmm I'm not sure what you mean by the File Types tab. But there isn't such a thing for me: http://screenshoot.me/TmEc4U – Pacerier Sep 29 '11 at 23:51
  • @Pacerier: sorry, I was using Windows XP when I wrote those instructions. I've edited the post to add instructions for Windows 7. – Aluísio A. S. G. Sep 30 '11 at 22:37
  • I'm using Vista I don't have the `shell\open\command` subkey take a look: http://screenshoot.me/KtUiLx – Pacerier Oct 02 '11 at 01:38
  • @Pacerier: Yeah, I thought it could happen... try creating it and delete the ``PersistentHandler`` subkey. – Aluísio A. S. G. Oct 02 '11 at 03:47
  • I've no idea why it's still not working. Am I doing something wrongly?: http://screenshoot.me/xpOQZ7 – Pacerier Oct 02 '11 at 13:11
  • Yes. Create the `shell` subkey, then `open` **inside** it, then `command` inside `open`. It should be `Computer\HKEY_CLASSES_ROOT\.pdf\shell\open\command` in the status bar. – Aluísio A. S. G. Oct 02 '11 at 16:36
  • Do you mean that the `Data` in `shell` is `(value not set)` ? Am I doing something wrongly again because it's still not working: http://qweop.com/v2 http://qweop.com/v3 http://qweop.com/v4 – Pacerier Oct 02 '11 at 23:17
  • Does it work if you delete the `ShellEx` subkey? Also, is Chrome not running or just not loading the correct profile? – Aluísio A. S. G. Oct 03 '11 at 00:16
  • let us [continue this discussion in chat](http://chat.stackexchange.com/rooms/1490/discussion-between-kalug-and-pacerier) – Aluísio A. S. G. Oct 03 '11 at 00:21
  • i'm not sure why I can't login to chat.stackexchange.com.. but anyway I've tried the next step but it's still not working. http://screenshoot.me/NPfDLl . It's opening with chrome, but not the correct profile. It's using the default profile – Pacerier Oct 03 '11 at 08:25
  • 1
    Can you take a screenshot of *chrome://version/*? – Aluísio A. S. G. Oct 03 '11 at 13:20
  • @ http://screenshoot.me/ymVWXo, btw if you could help me with this chrome issue too that'd be great thx man! http://superuser.com/q/342437/78897 – Pacerier Oct 03 '11 at 15:09
  • The profile is right (`Default` is always present). To use another profile, just specify a different folder. – Aluísio A. S. G. Oct 03 '11 at 15:25
  • When I open a pdf file with Chrome, Chrome will not use my custom profile but will use the default profile instead: http://screenshoot.me/EsOtgr – Pacerier Oct 03 '11 at 18:14