Before you rush in,
why do the authors of
notepadqq not want it to have root access? Maybe it can't be trusted? When you know that and you are happy to ignore the default, you can write your own version of the command in
bash positioned so the shell finds it and runs it before it finds the real binary.
Typically executable files in
/usr/local/bin/ are searched before the installed binaries in
/usr/bin/ and the command...
echo $PATH
...will show you the order that your particular shell is using.
For example, a wrapper script could be called
/usr/local/bin/notepadqq and contain something like...
Code: Select all
#!/bin/bash
/usr/bin/notepadqq --allow-root $*
exit $?
###eof###