Wine only opens Notepad++ as [Administrator]
-
I’m not sure what I did to make this happen, but suddenly Notepad++, which has been working great in Linux Mint (currently version 20.3), is opening with all the default settings and I see [Administrator] in the title of the window.
Any ideas how to recover from this? Everything appears intact in
/home/username/.wine/drive_c/users/username/Application Data/Notepad++/
. -
Notepad++ is only supported on Windows operating systems. The developer makes no guarantee or warranty that it will work on anything else, including Linux Mint using Wine or other such emulation/non-emulation layers. The developer will not provide support for or bug fixes for bugs that exist only on non-supported systems.
Documentation
- Support for systems other than the MS Windows family?: “Notepad ++ is created only for systems from the MS Windows family.”
- List of Supported Systems: “It means if a bug is present under an OS [not] supported but [is not present] under [a] supported OS, then this issue won’t be treated by the team.”
-
@peterjones Which is why I posted a question on a forum instead of opening a GitHub isssue. (o:
-
Well, the vast majority of the users in the forum are also Windows users, not Linux+Wine users. And we in the forum make no guarantee or warranty that Notepad++ will work in Wine, either. ;-P
I don’t know how to toggle Wine to run a Windows program in Administrator vs non. I did a quick web search for “linux wine run exe as administrator” and found this winehq post which says that Wine runs windows applications by default as administrator, and this post which says that you cannot run an exe as a “normal user” under development or stable Wine branches, because Wine does not implement UAC. However, that second lists a way you can patch with “wine staging”. But that is completely off topic for the Notepad++ forum, because it has to do with how Wine handles UAC, and nothing to do with Notepad++ specifically.
But other than an extra
[Administrator]
in the title bar, is there anything you have found that you cannot do on Wine as Administrator that you think you should be able to do? Because under supported Windows OSes, Administrator mode gives you the ability to edit/save more files, and about the only thing that it takes away is that some people have problems dragging from a non-administrator Explorer window into Administrator-privileged Notepad++, because of the difference in privileges (and since according to that winehq posting, all applications, presumably including Windows Explorer, are running as Administrator, there shouldn’t be any privilege differences, so I would think it would just work right). -
@peterjones Well, the biggest problem is that somehow Notepad++ has reverted to essentially a brand-new install, so no settings, sessions, nothing.
-
somehow Notepad++ has reverted to essentially a brand-new install, so no settings, sessions, nothing.
It may be that you just have to start reconfiguring from there.
But you can try to share your ?-menu’s Debug Info, and we can see if we can point you in the right direction.
But we are not experts on Wine here, so we won’t necessarily know how to map concepts from Windows to Wine: For example, is
/home/username/.wine/drive_c/users/username/Application Data/
the Wine equivalent ofc:\ProgramData\
? Or ofc:\users\username\AppData\
? Or ofc:\users\username\AppData\Roaming\
? Or ofc:\users\username\AppData\Local\
? Because which of those it’s the equivalent of will determine whether your config files are in the right place. Under supported Windows OSes, the Notepad++ configuration goes under%AppData%\Notepad++
, which is usuallyc:\users\username\AppData\Roaming
, not thec:\users\username\AppData\
that most people misinterpret the%AppData%
as meaning. So if/home/username/.wine/drive_c/users/username/Application Data/
is exactly equivalent toc:\users\username\AppData\
, then your Notepad++ is not in the right directory, and it should bec:\users\username\AppData\Roaming\Notepad++\
… But that’s a big IF, that we cannot answer.And maybe run Settings > Edit Popup ContextMenu, and see what the path is of the contextMenu.xml that it loads – because that should be the location where all your other config files go as well.