What does "bash: kwrite: command not found" error mean?
Hi, yeow,
I do not know how to add kwrite to root's path using the command line, but Pardus provides a nice workaround using the GUI. First, check to see whether the package
kde-servicemenu-rootactions is installed; if not, go ahead and install it. Next, use Dolphin to navigate to your desired directory and file, e.g.,
/boot/grub. If you want to open/edit the file
menu.lst with Kwrite, right-click on that file, and then choose
Root actions > Open as Text. Kwrite will proceed to open the file.
(Many thanks to atolboo for passing on that tip to me a few months ago).
If you want to experiment further, you'll see that if you become the root user from the command line (as you did before), you will be able to open/edit that file with either vim or Emacs. I have very basic knowledge of Emacs -- enough to edit configuration files, if necessary -- but vim scares the pants off me. However, with atolboo's workaround, you'll be able to comfortably edit such files with Kwrite ...
HTH,
=david