Score:0

sudo notepad-plus-plus not working

ar flag

I installed notepad-plus-plus from the Snap Store; this is a Windows text editor; it runs under Wine.

It works fine for normal files, but for files that require root permission I have trouble.

For example, to edit such a file with nano I'd do:

sudo nano /etc/rc.local

If I try that with notepad-plus-plus, I get this:

dave@MONOLITH:~$ sudo notepad-plus-plus /etc/rc.local
mkdir: cannot create directory '/run/user/0': Permission denied
Authorization required, but no authorization protocol specified
Starting application..

And the program doesn't start.

How can I make this work?

nerdfever.com avatar
ar flag
@Nmath Thanks. I've invested a lot in Notepad++ configuration, so it seems worth trying. Reading elsewhere I found a suggestion to take ownership of the file, edit it, and then set the ownership back. Do you think that'll work? Is there a method to do that in a script?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.