Closed ErrrorMaxx closed 5 months ago
Can you edit a desktop.ini
file with notepad?
Yes. Both notepad.exe and Notepad++ are able to edit desktop.ini
files
This is likely some weird Windows permission configuration. chezmoi does not have any special handling for .ini
files.
Reading a bit more about it, Desktop.ini
files in Windows need the read-only and hidden attributes, which are not supported by chezmoi.
You can use a run_before_
script to clear these attributes before chezmoi writes the file and a run_after_
script to restore them.
See also #2812 and #3392.
Thanks
Describe the bug
Applying changes to
desktop.ini
files onWindows
fails withAccess is denied.
To reproduce
existing
folder withdesktop.ini
to chezmoi source (e.g.Desktop
orDownloads
)desktop.ini
in source stateExpected behavior
Successful apply
Output of command with the
--verbose
flagOutput of
chezmoi doctor