Question about the setting of sumatrapdfprefs.txt

Submitted by roygbivibgyor on April 22, 2007 - 2:06pm

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?


( categories: )

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?

My work on free software is motivated by an idealistic goal: spreading freedom and cooperation. I want to encourage free software to spread, replacing proprietary software that forbids cooperation, and thus make our society better. - RMS

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.

No there isn't

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

Live with purpose.

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

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.

Live with purpose.