Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions issue opening openmw.cfg #11

Open
AnyOldName3 opened this issue Nov 7, 2021 · 2 comments
Open

Permissions issue opening openmw.cfg #11

AnyOldName3 opened this issue Nov 7, 2021 · 2 comments

Comments

@AnyOldName3
Copy link
Owner

Gives traces resembling:

[error.cpp:24] Traceback (most recent call last):
 [error.cpp:24]   File "K:/Programs/MO2/plugins/OpenMWExport.py", line 82, in display
 [error.cpp:24]     self.__clearOpenMWConfig(configPath)
 [error.cpp:24]   File "K:/Programs/MO2/plugins/OpenMWExport.py", line 140, in __clearOpenMWConfig
[error.cpp:24]     os.remove(configPath)
[error.cpp:24] PermissionError: [WinError 5] Access is denied: 'C:\\Users\\User\\Documents\\My Games\\OpenMW\\openmw.cfg'
 Plugin "OpenMW Exporter" failed: Traceback (most recent call last):
  File "K:/Programs/MO2/plugins/OpenMWExport.py", line 82, in display
    self.__clearOpenMWConfig(configPath)
  File "K:/Programs/MO2/plugins/OpenMWExport.py", line 140, in __clearOpenMWConfig
  os.remove(configPath)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\User\\Documents\\My Games\\OpenMW\\openmw.cfg'

I've been told this is likely related to Controlled Folder Access, a Windows security feature. Apparently, Microsoft thinks there's no legitimate reason to access a file in the Documents directory programmatically without having the user select it. For some reason, OpenMW's allowed to (I'm told a popup is displayed asking the user to give it permission) but when MO2 tries, the popup doesn't appear and it's just blocked.

@stewcanoe
Copy link

I have a "[WinError 5] Access is Denied" error, but my Controlled Folder Access is turned off right now. How do I resolve this?

@AnyOldName3
Copy link
Owner Author

That's not the whole error, so I can't tell you anything until you share your interface log and tell me which button you'd just pressed right before this happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants