How can I run notepad++.exe from terminal?
It's located under /home/jon/.wine/drive_c/Program Files/Notepad++/notepad++.exe
but when I execute
sudo /home/jon/.wine/drive_c/Program Files/Notepad++/notepad++.exe
it returns
sudo: /home/jon/.wine/drive_c/Program: command not found
If the file you are trying to create or edit does not require root privilege, run this:
If it does require root permission at all, install the notepad++ with your root account after having been logged in as root (e.g. by executing
sudo -s -H
), log out, and run:But usually, as has been pointed out, running wine applications as root is not recommended since wine apps rely on wine and the source code of wine apps may or may not be reviewed, meaning there is an increased amount of risk involved in doing so.
The space in the filename/path may be the main issue.
should be:
and I do believe you must tell wine what exe to run.
Here are a generic ones:
(Just copy paste on Terminal, & press ENTER key)
For Ubuntu x64 OS:
For Ubuntu x86 OS:
If you dont know if your ubuntu is x86 or not, then type both above, one after the other, one will work.
Best of luck
Now that a snap has been created for notepad++, the cli command is just
notepad-plus-plus
(if you have the snap downloaded). That should open the app if not already open. If it's already open, you can still specify a file after the command and it will open that file in the already-open instance of notepad++.