Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 555  / 1 Year ago, wed, february 15, 2023, 4:47:52

Is there a way to prevent gedit from always opening a new "untitled" file when launched (at least when an other file name is passed either with Alt+F2 and gksudo)? It is borring to always have to click "don't save" for this null file with nothing typed in it.
Thank you


More From » gedit

 Answers
6

This is a bug as you can see here: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/796076 and it doesn't look like it will be fixed because apparently, GNOME developers don't want users to run any application as root.



A work-around is to use "gksu" (or "gksudo") twice, like this:



gksu gksu gedit /path/to/file


You can make an alias so you don't have to run this twice. To do this, open ~/.bashrc and add this:



alias gksudo='gksudo gksudo'
alias gksu='gksu gksu'


Then, save the file and run this to source the ~/.bashrc file:



. ~/.bashrc

[#32267] Wednesday, February 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
soahan

Total Points: 230
Total Questions: 123
Total Answers: 123

Location: Maldives
Member since Tue, Dec 21, 2021
2 Years ago
;