nano-for-windows icon indicating copy to clipboard operation
nano-for-windows copied to clipboard

Incorrect path read when nano tries to read global nanorc

Open helpimnotdrowning opened this issue 9 months ago • 0 comments

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

helpimnotdrowning avatar May 15 '24 21:05 helpimnotdrowning