I recently installed the Notepad++ Snap from the App Center of an Ubuntu 24.04 VirtualBox guest OS (host: Windows 10).
I can open locally-saved files that I have created myself, but I cannot open system files like ~/.bashrc (at least not when they are stored in their original location - I can open them if I copy them to another directory).
Similarly, I cannot open any of the files that are stored on the CIFS drives that I have mounted to the VM unless I copy the file to a local directory.
Things to note:
When I attempt to open these files, I get the same sort of error reported in this question.
When I successfully open a file, I can see that the file path uses
\for the directory separator instead of/, and it is prepended withZ:.I currently have all options in Settings enabled, though disabling opengl seemed to be needed to open the locally saved files.
The Notepad++ window is labelled as an Administrator window, but opening files with
sudodoesn't help. It does return this error at the end, but I don't have~/.wineon this system, even after installing Wine in full withsudo apt install wine.
Update: I managed to find a Notepad++ Community Forum thread for this snap, which mentions several snap connect commands that should be run after the initial installation. The first one gives me an error, but the commenter referenced a GitHub page as their source, and that page currently lists only two of those commands. Unfortunately, running them doesn't resolve the issue.