[SOLVED] "'gksu gedit' doesn't work
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] "'gksu gedit' doesn't work
The comment "gksu gedit" used to work, prompt me for a password, and run gedit as root so I could edit files that needed root access. Since I upgraded to Linux Mint 18.2, it prompts for the password, and does nothing when I enter the correct password. How can I get this to work again?
And no, I'm not interested in using another text editor. I like using gedit to edit root files so don't bother responding with something like "use another text editor".
And no, I'm not interested in using another text editor. I like using gedit to edit root files so don't bother responding with something like "use another text editor".
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
- Level 6
- Posts: 1347
- Joined: Thu Dec 26, 2013 10:19 am
- Location: N.E. AR USA
Re: "'gksu gedit' doesn't work
Have you confirmed that gedit is installed on your system? It was not by default on my 18.2 XFCE edition...I just checked.
Re: "'gksu gedit' doesn't work
It still is on my 18.2 Cinnamon upgrade, check
if it isn't listed
dpkg -l | grep gedit
if it isn't listed
sudo apt-get install gedit
Re: "'gksu gedit' doesn't work
You probably have xedit now. Try that.
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Re: "'gksu gedit' doesn't work
Ain't it named xed only?
So the command to use in order to edit a file with root permissions would read
So the command to use in order to edit a file with root permissions would read
Code: Select all
gksudo xed /path/to/file/which/you/want/to/edit
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 792 days now.
Lifeline
Re: "'gksu gedit' doesn't work
You can figure out which text editor you have by opening a text file via your file-browser, then find the real name (it might stupidly call itself something like "text editor") by either Help->About, or looking at the processes which are running right after you start it:jez9999 wrote:And no, I'm not interested in using another text editor. I like using gedit to edit root files so don't bother responding with something like "use another text editor".
ps aux | grep $USER
. If it's not gedit, then install gedit.Edit: instead of
Code: Select all
ps aux | grep $USER
Code: Select all
ps aux | grep text-file-name-you-opened
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Your data and OS are backed up....right?
Re: "'gksu gedit' doesn't work
Yes, that looks correct to me.karlchen wrote:Ain't it named xed only?
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Re: "'gksu gedit' doesn't work
Mint 18 default text editor is xed, if you want gedit, install and use itjez9999 wrote:I'm not interested in using another text editor. I like using gedit to edit root files
Code: Select all
sudo apt install gedit
Re: "'gksu gedit' doesn't work
You guys were right, gksu xed works. Kind of silly that gksu silently fails when the target program doesn't exist.
Re: "'gksu gedit' doesn't work
Great, that means that you get to mark the thread as [SOLVED] now!jez9999 wrote:You guys were right, gksu xed works.
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!