I have an annoying issue with gedit on Ubuntu 18.04. Only under sudo gedit when I can see/change preferences. Appreciate any experience to a solution.
Tried all the methods I can find such as removing the accels file including re-install gedit, none resolved the problem.
This link is the closest to the problem, but I still do not know how to retain the settings for regular user. Appreciate any insight.
Asked
Active
Viewed 356 times
1
Yifangt
- 13
1 Answers
0
You can find the files and directories under $HOME that don't belong to you (to your $USER) with (note sudo - this needs to run as root):
sudo find $HOME \! -user $USER -print
If you want to change the owner back to you, you can (this will handle funny filenames, too):
sudo find $HOME \! -user $USER -print0 | xargs -0 sudo chown --verbose $(id -u):$(id -g)
waltinator
- 36,399
-
Thanks! I checked the permission of the folder/files in my home directory, all are correct. especially gedit and related are under my ownership. – Yifangt Aug 03 '18 at 17:59
sudo find $HOME \! -user $USER -ls, andfind $HOME \! -readablewill point out problems. – waltinator Jul 24 '18 at 18:16rootis a Bad Idea. They update files in your$HOME/...asroot. Later, as$USER, troubling – waltinator Jul 26 '18 at 21:50