When ever I have to make an adjustment to a file or throw in a shell script into the root directory using sudo leafpad I get this error:
johnb@home:~$ sudo leafpad /etc/profile.d
(leafpad:2899): Gtk-WARNING **: 17:47:37.379: Unable to locate theme engine in module_path: "adwaita",
(leafpad:2899): Gtk-WARNING **: 17:47:37.385: Unable to locate theme engine in module_path: "adwaita",
** (leafpad:2899): WARNING **: 17:47:49.919: Invalid borders specified for theme pixmap:
/usr/share/themes/Breeze/gtk-2.0/../assets/line-h.png,
borders don't fit within the image
If I try to use kate, I get this error:
johnb@home:~$ sudo kate /etc/profile.d
[sudo] password for johnb:
Executing Kate as root is not possible. To edit files as root use:
SUDO_EDITOR=kate sudoedit <file>
Can anyone possibly direct me to the correct way to make a new file into a root directory, usually the /etc directory or edit one already there, the proper linux way through the cli? I just had to put in a shell file into profile.d for KWIN_TRIPLE_BUFFER=1, and had to manually make a file, and drop it into the folder. there has to be a correct way than that.
Thanks for reading.
johnb@home:~$ sudo leafpad /etc/profile.d
(leafpad:2899): Gtk-WARNING **: 17:47:37.379: Unable to locate theme engine in module_path: "adwaita",
(leafpad:2899): Gtk-WARNING **: 17:47:37.385: Unable to locate theme engine in module_path: "adwaita",
** (leafpad:2899): WARNING **: 17:47:49.919: Invalid borders specified for theme pixmap:
/usr/share/themes/Breeze/gtk-2.0/../assets/line-h.png,
borders don't fit within the image
If I try to use kate, I get this error:
johnb@home:~$ sudo kate /etc/profile.d
[sudo] password for johnb:
Executing Kate as root is not possible. To edit files as root use:
SUDO_EDITOR=kate sudoedit <file>
Can anyone possibly direct me to the correct way to make a new file into a root directory, usually the /etc directory or edit one already there, the proper linux way through the cli? I just had to put in a shell file into profile.d for KWIN_TRIPLE_BUFFER=1, and had to manually make a file, and drop it into the folder. there has to be a correct way than that.
Thanks for reading.
Comment