When I type gedit filename.c
:
Unable to init server: Could not connect: Connection refused
(gedit:76): Gtk-WARNING **: 17:57:16.278: cannot open display:
This is the error is displayed and those numbers shown is random everytime I execute it,
when ls -l ~/.config/gedit
is entered
ls: cannot access '/home/blank/.config/gedit': No such file or directory
is displayed
how to fix this?
ls -l ~/.config/gedit
command. – Pilot6 Feb 27 '19 at 12:38sudo -H gedit /path_to/filename.c
. If you're running in Wayland, either log back into your session using the "Ubuntu" option, or disable Wayland by editing/etc/gdm3/custom.conf
. Report back to @heynnema – heynnema Feb 27 '19 at 15:37sudo ls -l ~/.config/gedit
– Pilot6 Feb 28 '19 at 19:41