Type "xhost +" as regular user and then root (well all users, actually...) should be allowed to access the X display.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
emacs: Cannot connect to X server :0.0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.
![]()
i can open the file as the regular user but to edit it i have to open it as a root.
Type "xhost +" as regular user and then root (well all users, actually...) should be allowed to access the X display.
Thanks a bunch..i will give it a try when i get back to home!
update : worked like a charm!![]()

Lenovo - Yoga 7i 2-in-1 16" 2K Touchscreen Laptop - Intel Core Ultra 5 Proces...
$749.99
Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black
$241.50
Lenovo ThinkPad T14 G2 14-Inch AMD Ryzen R5 5650U 16GB, 512GB SSD Win 11 Pro
$398.99
Lenovo ThinkPad T14 Gen 2 14" i7-1165G7 2.80GHz 16GB RAM 512GB SSD Windows 11
$284.99
Lenovo - IdeaPad Slim 3 15.6" Full HD Laptop - AMD Ryzen 5 40 2025 - 8GB Memo...
$379.99
Lenovo - IdeaPad Slim 3 15.3" 2k Touchscreen Laptop - AMD Ryzen 7 170 2025 - ...
$599.99
Lenovo ThinkPad T14 Gen 2 14" Touchscreen i7-1185G7 16GB RAM 512GB SSD Win 11
$284.99
Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black
$241.50
Lenovo ThinkPad T14 Gen 1 Laptop 14" i5 10310U 1.7GHz 16GB 256GB SSD W11P Touch
$164.99
Lenovo ThinkPad T14 Gen 1 Laptop Intel Core i5 10310U 16GB 256GB SSD Touch W11P
$164.99