Giter VIP home page Giter VIP logo

Comments (9)

AlexL2024 avatar AlexL2024 commented on June 19, 2024 1

The problem is that SumatraPDF-settings.txt resides in both folders "..\AppData\Local\SumatraPDF" and "d:\Program Files\SumatraPDF", but the program doesn't save any data to any of these configuration files
And "yes", the data in "..\AppData\Local\SumatraPDF\SumatraPDF-settings.txt" is NOT used at all (that was the reason to copy SumatraPDF-settings.txt to "d:\Program Files\SumatraPDF" folder
I've never encountered such problems earlier. I just upgraded from 3.4.6 to 3.5.2 and on opening SumatraPDF after that I found that no previously opened tab was opened and no change in options is remembered either

from sumatrapdf.

AlexL2024 avatar AlexL2024 commented on June 19, 2024 1

Hi, Mark
I tried executing the program version 3.5.2 with admin rights and it did began to save settings, but not in the \AppData\Local\SumatraPDF\SumatraPDF-settings.txt and in the "d:\Program Files\SumatraPDF\SumatraPDF-settings.txt" (sort of like a PORTABLE version). Besides there appeared "sumatrapdfcache" folder ...

from sumatrapdf.

GitHubRulesOK avatar GitHubRulesOK commented on June 19, 2024

"d:\Program Files\SumatraPDF.." may only be a PORTABLE version thus the settings in that case would potentially be fresh in that folder unless you have copied from another portable copy.
the all users installation folder C:\progr... is not allowed to hold data hence an installed version would start by building settings in current users %localappdata%

from sumatrapdf.

GitHubRulesOK avatar GitHubRulesOK commented on June 19, 2024

ALL portable (non installed) versions use their .exe folder for settings. (they will NOT used an installed versions settings)

All installed versions single or multi user use the users local data folder (in a subfolder below that, to not conflict with other users)

thus there should be only 2 possible locations per user.

What can happen is much older versions used the user "Roaming" folder but MS now suggest user %localappdata% thus the \SumatraPDF\SumatraPDF-settings.txt
image

from sumatrapdf.

AlexL2024 avatar AlexL2024 commented on June 19, 2024

No records in the Roaming folder found
What I found out is that when I simply copied the whole folder "d:\Program Files\SumatraPDF" to "C:\Program Files\SumatraPDF" (without SumatraPDF-settings.txt in it) everything started to work properly - the changes are written in "..\AppData\Local\SumatraPDF\SumatraPDF-settings.txt".
So the problem is probably incorrect functioning of SumatraPDF.exe if it's installed in a directory other that default "C:\Program Files\SumatraPDF"

from sumatrapdf.

markjeeninga avatar markjeeninga commented on June 19, 2024

I had the same issue with version 3.5.2, and even with version 3.4.6. I noticed the program did not generate a settings-file in the folder. The issue was solved for me by executing the program with admin rights. In the end I updated the rights in the installation folder so that the user profile full (writing) access for the folder. This solved it for me. Hope it works for you too.

from sumatrapdf.

GitHubRulesOK avatar GitHubRulesOK commented on June 19, 2024

It sounds like you are using installer outside of the all users protected area there are 2 variant sizes for a reason. The bigger single exe has the install and uninstall code for the system and registry, but the smaller version is the one for portability

If it was an installed copy it should outside of the C:\program folders attempt to re-install and if you say all users into c:\program files since that's the detected previous default all users folder
image

A clean installation will start up for a single user
image

ALL USERS will start in the all users area
image

from sumatrapdf.

AlexL2024 avatar AlexL2024 commented on June 19, 2024

I installed (actually I just upgraded the previous version) using SumatraPDF-3.5.2-64-install.exe file (not portable) in the folder "d:\Program Files\SumatraPDF" (so before the problems described in my first post I didn't have "C:\Program Files\SumatraPDF" at all). And with versions up to 3.4.6 everything worked fine with that configuration.
Now I have 2 working options:

  1. By manually copying all files to "C:\Program Files\SumatraPDF" and starting the program from that folder I got the situation in which the program works with c:\Users\User\AppData\Local\SumatraPDF\SumatraPDF-settings.txt
  2. If I start "d:\Program Files\SumatraPDF\SumatraPDF.exe" with admin rights then he program works with "d:\Program Files\SumatraPDF\SumatraPDF-settings.txt"

So something has changed in 3.5.2 :-)

from sumatrapdf.

kjk avatar kjk commented on June 19, 2024

Based on description this must be a permission issue most likely settings file was created with admin permissions or in a directory where only admin apps can write to.

That's why it works in admin but not otherwise.

This could be related to imperfect upgrade code but not knowing what exactly happened I don't see a way to figure out how it got in that state.

Check permissions or just delete / un-install all versions and re-install from scratch.

from sumatrapdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.