Originally posted by jglen490
View Post
Announcement
Collapse
No announcement yet.
Problems writing scripts or files to directories.
Collapse
This topic is closed.
X
X
-
- Top
- Bottom
-
Like Snowhog said, kate will work fine, just don't try to start it as root (with sudo or by other means, this isn't necessary anymore)...If it doesn't have write permission when you save the file, it will ask for your password to temporarily elevate it's write privileges (so you can save files to where you normally don't have access to).
- Top
- Bottom
Leave a comment:
-
I always liked Leafpad as a text editor, but time to move on. Kate is excellent for writing plain text, scripts, C++ source code, you name it. On the command line, I use nano. There may be better solutions there, but nano is simple and easy to use.
- Top
- Bottom
Leave a comment:
-
Leafpad? It's GTK and Plasma is built on QT so you can expect those warnings (not errors) just about anytime you launch a GTK program. A lot of people have a hard time adjusting the the new paradigm of NOT launching Kate or Dolphin using sudo, but once you get used to it you'll be OK. If you really need to be root a lot of the time, you can always create a root account and use it.
- Top
- Bottom
Leave a comment:
-
Problems writing scripts or files to directories.
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.Tags: None
- Top
- Bottom
Leave a comment: