Open JOduMonT opened 1 year ago
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
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 ?
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?
so; it work when I disable Memory integrity https://support.microsoft.com/en-us/windows/core-isolation-e30ed737-17d8-42f3-a2a9-87521df09b78
@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 :/
@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.
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.
== 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.
Operating system
Publii version
Bug description
I don't remember which version has been working on my Windows 11 Pro but now when I try to install
I have this error:
What I tried