You are here

Question about the setting of sumatrapdfprefs.txt

6 posts / 0 new
Last post
roygbivibgyor
Offline
Last seen: 15 years 5 months ago
Joined: 2007-04-22 14:42
Question about the setting of sumatrapdfprefs.txt

I found out that when I put SumatraPDF folder in C:\Program Files, it always writes sumatrapdfprefs.txt in my application data folder. But when I move SumatraPDF folder to other place, it doesn't do this. Is there any way I can change it? or maybe I should just use the already portable version from the official website?

Patrick Patience
Offline
Last seen: 2 years 9 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
SumatraPrefs.

Is just a file that rembers not to popup the "Would you like to use SumatraPDF as the default veiwer for PDF files" after one time. Or maybe it doesn't pop up at all because of that file. But you have that popup in the local install to. So what's wrong with SumatraPrefs? It's a small file that goes under the App/sumatrapdf folder...

What's wrong with that?

roygbivibgyor
Offline
Last seen: 15 years 5 months ago
Joined: 2007-04-22 14:42
Sorry...

I should make it more clear. I mean when I put SumatraPDFPortable in C:\Program Files directory, it creates a folder to store SumatraPrefs in C:\Documents and Settings\user name\Application Data folder. I don't know if there's any way to change this.

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 7 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
No there isn't

SumatraPDFPortable is not meant to be run from the Program Files directory.

Sometimes, the impossible can become possible, if you're awesome!

arqbrulo
arqbrulo's picture
Offline
Last seen: 2 years 7 months ago
Joined: 2006-08-10 16:38
Why?

What could cause a self-contained program not to run properly at a different location? If he were to put it in another folder would it work like it's supposed to?
---------------
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
"Sometimes I worry about being a success in a mediocre world." -- Lily Tomlin

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 7 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
ProgramFiles

Simple. Sumatra PDF itself (not the portable enclosure) detects that it's in the Windows Program Files directory (as defined by the environment variable) and assumes it's running in a local install... so it then uses APPDATA. The Program Files directory is meant for locally installed apps, not portable ones.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments