0

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 with Z:.

  • 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 sudo doesn't help. It does return this error at the end, but I don't have ~/.wine on this system, even after installing Wine in full with sudo 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.

  • Comments have been moved to chat; please do not continue the discussion here. Before posting a comment below this one, please review the purposes of comments. Comments that do not request clarification or suggest improvements usually belong as an answer, on [meta], or in [chat]. Comments continuing discussion may be removed. – Thomas Ward Jan 23 '25 at 21:29

1 Answers1

0

Based on the chat with @ThomasWard, it is best to install NP++ with a Windows-based executable rather than the usual Linux Snap methods. This can be done with Wine - see this comment for complete step-by-step instructions.

  • 1
    One problem that this installation didn't resolve was the missing Courier New font. It turns out that this is a generic Linux issue that can be resolved with sudo apt-get install msttcorefonts (source: this comment) – mathlete Jan 24 '25 at 19:35
  • A new problem that this installation introduces is that NP++ doesn't appear in the Open With... dialog from the Nautilus context menu. This thread addresses this particular issue. – mathlete Jan 24 '25 at 20:47
  • I have been running Notepad++ under Bottles without any issues, but if you are able to run it directly under Wine then that's great. – DeronJ Jan 24 '25 at 21:51