[SOLVED] "'gksu gedit' doesn't work

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jez9999

[SOLVED] "'gksu gedit' doesn't work

Post by jez9999 »

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".
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.
Neil Edmond
Level 6
Level 6
Posts: 1347
Joined: Thu Dec 26, 2013 10:19 am
Location: N.E. AR USA

Re: "'gksu gedit' doesn't work

Post by Neil Edmond »

Have you confirmed that gedit is installed on your system? It was not by default on my 18.2 XFCE edition...I just checked.
JeremyB
Level 21
Level 21
Posts: 13880
Joined: Fri Feb 21, 2014 8:17 am

Re: "'gksu gedit' doesn't work

Post by JeremyB »

It still is on my 18.2 Cinnamon upgrade, check dpkg -l | grep gedit
if it isn't listed sudo apt-get install gedit
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: "'gksu gedit' doesn't work

Post by Moem »

You probably have xedit now. Try that.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
User avatar
karlchen
Level 23
Level 23
Posts: 18231
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: "'gksu gedit' doesn't work

Post by karlchen »

Ain't it named xed only? :?
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
Image
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
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: "'gksu gedit' doesn't work

Post by Flemur »

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".
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: ps aux | grep $USER. If it's not gedit, then install gedit.

Edit: instead of

Code: Select all

ps aux | grep $USER
you could do

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?
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: "'gksu gedit' doesn't work

Post by Moem »

karlchen wrote:Ain't it named xed only? :?
Yes, that looks correct to me.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
minitux

Re: "'gksu gedit' doesn't work

Post by minitux »

jez9999 wrote:I'm not interested in using another text editor. I like using gedit to edit root files
Mint 18 default text editor is xed, if you want gedit, install and use it

Code: Select all

sudo apt install gedit
and then use gedit to edit root file with gksu or gksudo
jez9999

Re: "'gksu gedit' doesn't work

Post by jez9999 »

You guys were right, gksu xed works. :) Kind of silly that gksu silently fails when the target program doesn't exist.
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: "'gksu gedit' doesn't work

Post by Moem »

jez9999 wrote:You guys were right, gksu xed works. :)
Great, that means that you get to mark the thread as [SOLVED] now! :D
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Locked

Return to “Software & Applications”