I accidentally deleted (permamently deleted. Not a soft delete to Trash) ~/.config
directory.
I logged out and re-logged in and thing seem to be normal. But are they?
What have I lost? How will affect my computer? How do I set things right?
I accidentally deleted (permamently deleted. Not a soft delete to Trash) ~/.config
directory.
I logged out and re-logged in and thing seem to be normal. But are they?
What have I lost? How will affect my computer? How do I set things right?
.config
folder contains your application configurations. Whether it is system level or user level depends on the location.Yours look like user level config.Check this post.
You would likely lose any user level custom configuration/settings you may have set for any app that adheres to the XDG Directory Specification.
Most apps in this case revert to default settings. You may have to manually add these configurations again. Note: Certain applications that have their own config folder instead of using
config
will not be affected.The
~/.config
directory contains application configuration related to your user account only. Deleting it will return the configuration for those applications to their default value, as if you had not used them before.Whether this is a problem for you depends on what applications you've been using and configuring.
It does not affect any system-wide configuration of any applications, only the customizations added for your user account.
You have removed all the user specific modifications or properties (for that specific user) for the applications that use directories under
~/.config
to dump and read configuration. Generally, all the XDG applications use~/.config
;~/.config
is used to set or override any user specific configuration of an application set globally elsewhere.This is not a problem per se, given you are want to set those again, or prompted to be set or happy with th globals.
At the very least, i would suggest you to run:
to create the file
~/.config/user-dirs.dirs
(XDG_CONFIG_HOME
defaults to~/.config
) that contains variousXDG_*
directory directives that many applications use.You should get your
~/.config/user-dirs.dirs
having:If you accidentally deleted something, just go into your backup and restore the deleted files.
Most of the programs will generate their configuration files and put them in place again, however if you have something manually set, they're gone and you have to config them again.
Use your Ubuntu for a while or try something like
testdisk
to get your files back.