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

Incorrect path read when nano tries to read global nanorc #41

Open
helpimnotdrowning opened this issue May 15, 2024 · 0 comments
Open

Comments

@helpimnotdrowning
Copy link

I was trying to find where the global nanorc file was located (/etc/nanorc equivalent), since only the ~/.nanorc was documented in the README; I poked around with procmon and found that nano tries to read C:/Users/<user>/ProgramData/nanorc rather than C:/ProgramData/nanorc
image

If I create the file above and fill it with garbage, nano believes itself to be reading C:/ProgramData/nanorc
image
image

As for a solution, rather than sticking with the C:/ProgramData/nanorc it tries to read, I think nano should avoid polluting ProgramData with loose files and instead create a subdirectory like other programs do, ie something like this:
image
rather than this:
image

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

1 participant