![]() ![]() ![]() However without a bit more work, it'd always launch Atom with gksu or pkexec, etc.plus if a Atom update makes changes to that file you'd have to patch it again. You'd need to edit the shell script that your launcher/terminal runs to give rights to the actual Atom application that it launches. Add the gedit Text Editor to my startup applications via the GNOME Tweak Tool. Here are the steps I took: Create a sample directory and sample text file via mkdir /sample & touch /sample/sample.txt. Most of the time though any files I need to edit with privileges will not have that issue, normally a config file that'd be more pleasant to use Atom with you're granting rights to the wrapper script that launches Atom far as I understand. This post here served as a guide at my attempt to force the gedit Text Editor to open a specific file each time I startup my computer. For example VMWare if running as root will not have it's log files available to my user, I have to open the file browser with root rights for the log files to be visible. The terminal will indicate that you cannot read the folder /root. Just typing sudo nautilus in a terminal emulator would also work. Running Commands as Root In a terminal, type ls -a /root. Theres a nautilus script that allows you to open a directory as root, look for nautilus-gksu on your repositories. Though in some cases with Linux certain files are not visible or writable to unless you're accessing the file system as that user or a user that belongs to a certain group. Press Alt F2 to run a command and then enter gksu nautilus (using gksu is the recommended way to open GUIs with root permissions). I've got a thread on reddit seeking help as well: that sounds more than what I'm looking for rather than needing to run Atom as a whole with elevated privileges via pkexec/polkit. I believe this might have something to do with how Atom launches via a shell script instead of a binary directly? Would anyone know a way to fix this so I can use Atom for editing root owned files too? This worked fine with Gedit using polkit I could run pkexec gedit and save a file in the same location as root, with pkexec atom no file was saved as myself or root, just running atom would allow me to write a file as myself. Something is amiss though if you correctly installed gedit and it wont open files. There should be several text editors available and you should be able to find them from from your Debian menu under editors or text editors. However I was unable to save a file getting a permission denied error. I believe the default file manager in xfce is thunar and the default text editor is leafpad or mousepad. The former does nothing, I setup a policy file for polkit and everything seemed good, Atom opened like a fresh install with no packages or past working tabs open. Normally you'd use gksu/kdesu or the newer polkit/policykit with pkexec. atom in their home directory as root which'll cause problems when not running atom as root. I'm aware that we should avoid sudo atom since it'll write to the users. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |