Cobra Forum

Linux Specialised Support => Wine => Topic started by: kalpana on Oct 27, 2023, 06:52 AM

Title: Notepad++ 8.3.2 fails to start and has this error: wine: cannot find L"/home/<Us
Post by: kalpana on Oct 27, 2023, 06:52 AM
This week (May 9, 2022), Notepad++ stopped working for me. Running
Code:
notepad-plus-plus
in the terminal produces this error.

Code:
<UserName>@<MachineName:~$ notepad-plus-plus
Installing application..
Running hook '/snap/notepad-plus-plus/363/sommelier/hooks/pre-install'
Starting application..
wine: cannot find L"/home/<UserName>/snap/notepad-plus-plus/common/.wine/dosdevices
/z:/home/<UserName>/snap/notepad-plus-plus/363/notepad-plus-plus/notepad-plus-plus.exe"

After some digging, see reference 1, it seems the latest Notepad++ 8.3.2 made available through an Ubuntu Software update had a signfiicant defect. The solution is to revert to an older version of Notepad++. This command reverts you to an older version of Notepad++ and resolved the error for me.

Code:
snap refresh --beta notepad-plus-plus --devmode
Alternatively, you can check any old versions available on your system with this command.

Code:
(base) apricot@apollo:~/Downloads$ snap list notepad-plus-plus --all
Name               Version  Rev  Tracking     Publisher  Notes
notepad-plus-plus  8.3.2    363  latest/beta  mmtrt      disabled,devmode
notepad-plus-plus  8.1.9.3  334  latest/beta  mmtrt      devmode

To downgrade, you can use this command.

Code:
sudo snap revert notepad-plus-plus --revision 334
Unfortunately, if you use already used this command to completely remove Notepad++, snap revert will not work, but snap refresh should work.

Code:
snap remove --purge notepad-plus-plus
Hopefully in a few days or weeks, a newer version of Notepad++ is available which fixes the initial issue. For now, dowgrading gets me through my days.

References

1. https://notepad-plus-plus.org/downloads/v8.3.2/ "Due to a critical regressions found in 8.3.2 release, please download v8.3.3 in which the critical issues have been fixed."