I installed poedit 3.3.1 on my Ubuntu 22.04 and I want to access the .po files found in the var/www/html/ directory. However, every time I try, I get Error opening directory '/var': Permission Denied
I changed the ownership of the var directory and even ran chmod 777 on it but the error persists. I am having to copy the files into the desktop every time, edit them, and then recopy them. Anyone knows how i can run poedit as an admin or fix this issue?
When trying to run sudo poedit I get the following error:
mkdir: cannot create directory '/run/user/0': Permission denied
Authorization required, but no authorization protocol specified
14:21:13: Error: Unable to initialize GTK+, is DISPLAY set properly?
It seems there is some UID issue. When i manually created the directory, the first line of the error disappeared.
Running poedit without sudo opens normally without any errors or warnings.
Update: fixed the sudo issues sudo poedit now works but still have the permission issue.