Giter Site home page Giter Site logo

Memory Integrity make Publii's installation throwing an error: Failed to get 'documents' path (Windows 11Pro + Publii 0.43.1, 0.42.1 and 0.41.1) about publii HOT 7 OPEN

JOduMonT avatar JOduMonT commented on June 12, 2024
Memory Integrity make Publii's installation throwing an error: Failed to get 'documents' path (Windows 11Pro + Publii 0.43.1, 0.42.1 and 0.41.1)

from publii.

Comments (7)

dziudek avatar dziudek commented on June 12, 2024

Hi,

It seems to be a bug with permissions on your system. I have checked and we are properly calling getPath function after ready event of the app. 'documents' is a standard param for the getPath function so it must be something with permissions on your OS

from publii.

JOduMonT avatar JOduMonT commented on June 12, 2024

That's highly possible, but I'm sure if I knew what you are talking about, I would have already fixed it.
How did you check the getPath ?
Is that test is related to my Windows or to Publii ?

from publii.

dziudek avatar dziudek commented on June 12, 2024

In my opinion it is related to your Windows. There can be 2 possible reasons:

  • Permissions: There might be permission issues that prevent Electron from accessing the documents directory. Make sure your application has the necessary permissions to access the file system.

  • System-Specific Issues: The user's documents directory could be configured in a non-standard way on their system, or there could be an issue with the operating system that's preventing access to the directory.

getPath function throws error if the specific path (in this case documents) is not available.

Also I have read somewhere that some users can use One Drive sync with their documents folder - are you using this feature? Maybe it is a problem caused by One Drive sync and marking the folder resource as busy?

from publii.

JOduMonT avatar JOduMonT commented on June 12, 2024

so;
it work when I disable Memory integrity
image
https://support.microsoft.com/en-us/windows/core-isolation-e30ed737-17d8-42f3-a2a9-87521df09b78

from publii.

dziudek avatar dziudek commented on June 12, 2024

@JOduMonT - that's interesting - on my Windows laptop used for tests I have this settings enabled and Publii works fine. I suppose that it can be related to some additional settings which are enabled with this option, but to be honest - I have no idea which one :/

from publii.

JOduMonT avatar JOduMonT commented on June 12, 2024

@dziudek

@JOduMonT - that's interesting - on my Windows laptop used for tests I have this settings enabled and Publii works fine. I suppose that it can be related to some additional settings which are enabled with this option, but to be honest - I have no idea which one :/

yes; I disabled it for the installation
then by curiosity renebled it and then now Publii works even with that option enabled
it make me think it's more related to a dependancy then Publii itself.
image

from publii.

JOduMonT avatar JOduMonT commented on June 12, 2024

today I hit that issue again; and it was not during the installation;
I would say it's a user behavior issue ;)
I'm curious if someone could try my mis behavior to see if it's related or not to it.

Basically

  1. Close Publii
  2. Goto ./Publii directory
  3. Delete everything inside
  4. Reopen Publii

== then in my case; only backups, languages and plugins are recreated then I have the error
🤔 which make me think that it miss the super user privileges to create the reset; which was probably only allow during the 1st installation of the app.

from publii.

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.