reset application to its default state
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
3
down vote
favorite
how to reset a program to its default state?
in android we can clear application data to reset the application to its default state.
does it is possible to reset a program in ubuntu to its default state without uninstalling and reinstalling.
settings gsettings installed-programs
add a comment |Â
up vote
3
down vote
favorite
how to reset a program to its default state?
in android we can clear application data to reset the application to its default state.
does it is possible to reset a program in ubuntu to its default state without uninstalling and reinstalling.
settings gsettings installed-programs
Just curious, but did any of the answers (or both) help you out?
â Jacob Vlijm
Apr 28 at 13:46
Marked accepted.
â Praveen Yadav
May 4 at 20:44
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
how to reset a program to its default state?
in android we can clear application data to reset the application to its default state.
does it is possible to reset a program in ubuntu to its default state without uninstalling and reinstalling.
settings gsettings installed-programs
how to reset a program to its default state?
in android we can clear application data to reset the application to its default state.
does it is possible to reset a program in ubuntu to its default state without uninstalling and reinstalling.
settings gsettings installed-programs
settings gsettings installed-programs
edited Apr 8 at 18:25
![](https://i.stack.imgur.com/766hF.png?s=32&g=1)
![](https://i.stack.imgur.com/766hF.png?s=32&g=1)
Jacob Vlijm
61.9k9120214
61.9k9120214
asked Apr 8 at 12:22
Praveen Yadav
1108
1108
Just curious, but did any of the answers (or both) help you out?
â Jacob Vlijm
Apr 28 at 13:46
Marked accepted.
â Praveen Yadav
May 4 at 20:44
add a comment |Â
Just curious, but did any of the answers (or both) help you out?
â Jacob Vlijm
Apr 28 at 13:46
Marked accepted.
â Praveen Yadav
May 4 at 20:44
Just curious, but did any of the answers (or both) help you out?
â Jacob Vlijm
Apr 28 at 13:46
Just curious, but did any of the answers (or both) help you out?
â Jacob Vlijm
Apr 28 at 13:46
Marked accepted.
â Praveen Yadav
May 4 at 20:44
Marked accepted.
â Praveen Yadav
May 4 at 20:44
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
2
down vote
accepted
Where are customized properties stored?
Application settings are usually stored either:
- in
~/.config/application_name
Example:~/.config/libreoffice
- in their own dedicated local (invisible, name starts with a
.
) folder in~
.
Example:~/.gimp-2.8
Furthermore, applications can have one or more settings in the dconf
database (gsettings). A simple way to find out if that is the case is to run in a terminal window:
dconf watch /
...and play with the settings.
Lastly, (mostly) locally installed applications possibly created a local .desktop
file. If so, you also need to delete that one to make sure you are starting from scratch.
Reset
Th bottom line is to remove these folders, if they exist, and reset the gsettings
/ dconf
values. If you'd like a GUI way to reset thos keys, you can look them up in dconf-editor
, and reset them to default.
Local settings folder(s) will be re- created on the next time you run the application.
dconf-editor
is not installed by default. To install:
sudo apt install dconf-editor
add a comment |Â
up vote
2
down vote
Yes, you can. The method would depend on the particular application. You would have to find the configuration folder for that particular application and rename or delete it.
Many programs use use ~/.config/[app name]
. For others, you would have to check with the particular application, or developers to get the folder name.
Some examples for instance:
Thunderbird: ~/.thunderbird
Google Chrome ~/.config/
Gedit ~/.config/dconf/usr (This is configured via gsettings)
Wine ~/.wine
ssh ~/.ssh
add a comment |Â
up vote
1
down vote
It depends on the type of application and how it handles multiple users. In case of multiple users, there may be one "master" config file, which then gets copied to each user's directory. In certain cases, such as when a user makes a boo-boo or there's a security concern, it's easier to just reinstall the app or the whole OS; sometimes you might just want to try emulate factory reset.
Command-line applications often keep config in /etc/
. Notable examples of that are /etc/vim/vimrc
and /etc/bash.bashrc
. There may also exist extra folders (often ending with a d letter to signify daemons) for particular settings, for example /etc/logrotate.conf
and /etc/logrotate.d
. Graphical applications often (but not necessarily) use dconf database. Between command-line apps and GUI apps, they may use local files. These may be stored in ~/.conf
or just in plain sight in user's home folder.
The appropriate "reset" way depends on the app. Some apps have a button for that, others - may require deleting a config file. In case of GUI apps, one could use dconf
or preferably gsettings
command with reset
for particular setting or reset-recursively
for a range of setitngs. You may need to read documentation on those. And there are graphical front ends for that as Jacob Vlijm mentioned in his answer.
As for the case when you can't find what file an app uses, you can look under the hood of an app's behavior; one way is to look at open
syscalls in via strace
command. For example:
strace -e open firefox
Again, refer to strace
's manual for a set of advanced features and options that can help investigating app's behavior and open files.
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Where are customized properties stored?
Application settings are usually stored either:
- in
~/.config/application_name
Example:~/.config/libreoffice
- in their own dedicated local (invisible, name starts with a
.
) folder in~
.
Example:~/.gimp-2.8
Furthermore, applications can have one or more settings in the dconf
database (gsettings). A simple way to find out if that is the case is to run in a terminal window:
dconf watch /
...and play with the settings.
Lastly, (mostly) locally installed applications possibly created a local .desktop
file. If so, you also need to delete that one to make sure you are starting from scratch.
Reset
Th bottom line is to remove these folders, if they exist, and reset the gsettings
/ dconf
values. If you'd like a GUI way to reset thos keys, you can look them up in dconf-editor
, and reset them to default.
Local settings folder(s) will be re- created on the next time you run the application.
dconf-editor
is not installed by default. To install:
sudo apt install dconf-editor
add a comment |Â
up vote
2
down vote
accepted
Where are customized properties stored?
Application settings are usually stored either:
- in
~/.config/application_name
Example:~/.config/libreoffice
- in their own dedicated local (invisible, name starts with a
.
) folder in~
.
Example:~/.gimp-2.8
Furthermore, applications can have one or more settings in the dconf
database (gsettings). A simple way to find out if that is the case is to run in a terminal window:
dconf watch /
...and play with the settings.
Lastly, (mostly) locally installed applications possibly created a local .desktop
file. If so, you also need to delete that one to make sure you are starting from scratch.
Reset
Th bottom line is to remove these folders, if they exist, and reset the gsettings
/ dconf
values. If you'd like a GUI way to reset thos keys, you can look them up in dconf-editor
, and reset them to default.
Local settings folder(s) will be re- created on the next time you run the application.
dconf-editor
is not installed by default. To install:
sudo apt install dconf-editor
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Where are customized properties stored?
Application settings are usually stored either:
- in
~/.config/application_name
Example:~/.config/libreoffice
- in their own dedicated local (invisible, name starts with a
.
) folder in~
.
Example:~/.gimp-2.8
Furthermore, applications can have one or more settings in the dconf
database (gsettings). A simple way to find out if that is the case is to run in a terminal window:
dconf watch /
...and play with the settings.
Lastly, (mostly) locally installed applications possibly created a local .desktop
file. If so, you also need to delete that one to make sure you are starting from scratch.
Reset
Th bottom line is to remove these folders, if they exist, and reset the gsettings
/ dconf
values. If you'd like a GUI way to reset thos keys, you can look them up in dconf-editor
, and reset them to default.
Local settings folder(s) will be re- created on the next time you run the application.
dconf-editor
is not installed by default. To install:
sudo apt install dconf-editor
Where are customized properties stored?
Application settings are usually stored either:
- in
~/.config/application_name
Example:~/.config/libreoffice
- in their own dedicated local (invisible, name starts with a
.
) folder in~
.
Example:~/.gimp-2.8
Furthermore, applications can have one or more settings in the dconf
database (gsettings). A simple way to find out if that is the case is to run in a terminal window:
dconf watch /
...and play with the settings.
Lastly, (mostly) locally installed applications possibly created a local .desktop
file. If so, you also need to delete that one to make sure you are starting from scratch.
Reset
Th bottom line is to remove these folders, if they exist, and reset the gsettings
/ dconf
values. If you'd like a GUI way to reset thos keys, you can look them up in dconf-editor
, and reset them to default.
Local settings folder(s) will be re- created on the next time you run the application.
dconf-editor
is not installed by default. To install:
sudo apt install dconf-editor
edited Apr 8 at 12:53
answered Apr 8 at 12:32
![](https://i.stack.imgur.com/766hF.png?s=32&g=1)
![](https://i.stack.imgur.com/766hF.png?s=32&g=1)
Jacob Vlijm
61.9k9120214
61.9k9120214
add a comment |Â
add a comment |Â
up vote
2
down vote
Yes, you can. The method would depend on the particular application. You would have to find the configuration folder for that particular application and rename or delete it.
Many programs use use ~/.config/[app name]
. For others, you would have to check with the particular application, or developers to get the folder name.
Some examples for instance:
Thunderbird: ~/.thunderbird
Google Chrome ~/.config/
Gedit ~/.config/dconf/usr (This is configured via gsettings)
Wine ~/.wine
ssh ~/.ssh
add a comment |Â
up vote
2
down vote
Yes, you can. The method would depend on the particular application. You would have to find the configuration folder for that particular application and rename or delete it.
Many programs use use ~/.config/[app name]
. For others, you would have to check with the particular application, or developers to get the folder name.
Some examples for instance:
Thunderbird: ~/.thunderbird
Google Chrome ~/.config/
Gedit ~/.config/dconf/usr (This is configured via gsettings)
Wine ~/.wine
ssh ~/.ssh
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Yes, you can. The method would depend on the particular application. You would have to find the configuration folder for that particular application and rename or delete it.
Many programs use use ~/.config/[app name]
. For others, you would have to check with the particular application, or developers to get the folder name.
Some examples for instance:
Thunderbird: ~/.thunderbird
Google Chrome ~/.config/
Gedit ~/.config/dconf/usr (This is configured via gsettings)
Wine ~/.wine
ssh ~/.ssh
Yes, you can. The method would depend on the particular application. You would have to find the configuration folder for that particular application and rename or delete it.
Many programs use use ~/.config/[app name]
. For others, you would have to check with the particular application, or developers to get the folder name.
Some examples for instance:
Thunderbird: ~/.thunderbird
Google Chrome ~/.config/
Gedit ~/.config/dconf/usr (This is configured via gsettings)
Wine ~/.wine
ssh ~/.ssh
edited Apr 8 at 12:51
answered Apr 8 at 12:45
L. D. James
17.5k43178
17.5k43178
add a comment |Â
add a comment |Â
up vote
1
down vote
It depends on the type of application and how it handles multiple users. In case of multiple users, there may be one "master" config file, which then gets copied to each user's directory. In certain cases, such as when a user makes a boo-boo or there's a security concern, it's easier to just reinstall the app or the whole OS; sometimes you might just want to try emulate factory reset.
Command-line applications often keep config in /etc/
. Notable examples of that are /etc/vim/vimrc
and /etc/bash.bashrc
. There may also exist extra folders (often ending with a d letter to signify daemons) for particular settings, for example /etc/logrotate.conf
and /etc/logrotate.d
. Graphical applications often (but not necessarily) use dconf database. Between command-line apps and GUI apps, they may use local files. These may be stored in ~/.conf
or just in plain sight in user's home folder.
The appropriate "reset" way depends on the app. Some apps have a button for that, others - may require deleting a config file. In case of GUI apps, one could use dconf
or preferably gsettings
command with reset
for particular setting or reset-recursively
for a range of setitngs. You may need to read documentation on those. And there are graphical front ends for that as Jacob Vlijm mentioned in his answer.
As for the case when you can't find what file an app uses, you can look under the hood of an app's behavior; one way is to look at open
syscalls in via strace
command. For example:
strace -e open firefox
Again, refer to strace
's manual for a set of advanced features and options that can help investigating app's behavior and open files.
add a comment |Â
up vote
1
down vote
It depends on the type of application and how it handles multiple users. In case of multiple users, there may be one "master" config file, which then gets copied to each user's directory. In certain cases, such as when a user makes a boo-boo or there's a security concern, it's easier to just reinstall the app or the whole OS; sometimes you might just want to try emulate factory reset.
Command-line applications often keep config in /etc/
. Notable examples of that are /etc/vim/vimrc
and /etc/bash.bashrc
. There may also exist extra folders (often ending with a d letter to signify daemons) for particular settings, for example /etc/logrotate.conf
and /etc/logrotate.d
. Graphical applications often (but not necessarily) use dconf database. Between command-line apps and GUI apps, they may use local files. These may be stored in ~/.conf
or just in plain sight in user's home folder.
The appropriate "reset" way depends on the app. Some apps have a button for that, others - may require deleting a config file. In case of GUI apps, one could use dconf
or preferably gsettings
command with reset
for particular setting or reset-recursively
for a range of setitngs. You may need to read documentation on those. And there are graphical front ends for that as Jacob Vlijm mentioned in his answer.
As for the case when you can't find what file an app uses, you can look under the hood of an app's behavior; one way is to look at open
syscalls in via strace
command. For example:
strace -e open firefox
Again, refer to strace
's manual for a set of advanced features and options that can help investigating app's behavior and open files.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
It depends on the type of application and how it handles multiple users. In case of multiple users, there may be one "master" config file, which then gets copied to each user's directory. In certain cases, such as when a user makes a boo-boo or there's a security concern, it's easier to just reinstall the app or the whole OS; sometimes you might just want to try emulate factory reset.
Command-line applications often keep config in /etc/
. Notable examples of that are /etc/vim/vimrc
and /etc/bash.bashrc
. There may also exist extra folders (often ending with a d letter to signify daemons) for particular settings, for example /etc/logrotate.conf
and /etc/logrotate.d
. Graphical applications often (but not necessarily) use dconf database. Between command-line apps and GUI apps, they may use local files. These may be stored in ~/.conf
or just in plain sight in user's home folder.
The appropriate "reset" way depends on the app. Some apps have a button for that, others - may require deleting a config file. In case of GUI apps, one could use dconf
or preferably gsettings
command with reset
for particular setting or reset-recursively
for a range of setitngs. You may need to read documentation on those. And there are graphical front ends for that as Jacob Vlijm mentioned in his answer.
As for the case when you can't find what file an app uses, you can look under the hood of an app's behavior; one way is to look at open
syscalls in via strace
command. For example:
strace -e open firefox
Again, refer to strace
's manual for a set of advanced features and options that can help investigating app's behavior and open files.
It depends on the type of application and how it handles multiple users. In case of multiple users, there may be one "master" config file, which then gets copied to each user's directory. In certain cases, such as when a user makes a boo-boo or there's a security concern, it's easier to just reinstall the app or the whole OS; sometimes you might just want to try emulate factory reset.
Command-line applications often keep config in /etc/
. Notable examples of that are /etc/vim/vimrc
and /etc/bash.bashrc
. There may also exist extra folders (often ending with a d letter to signify daemons) for particular settings, for example /etc/logrotate.conf
and /etc/logrotate.d
. Graphical applications often (but not necessarily) use dconf database. Between command-line apps and GUI apps, they may use local files. These may be stored in ~/.conf
or just in plain sight in user's home folder.
The appropriate "reset" way depends on the app. Some apps have a button for that, others - may require deleting a config file. In case of GUI apps, one could use dconf
or preferably gsettings
command with reset
for particular setting or reset-recursively
for a range of setitngs. You may need to read documentation on those. And there are graphical front ends for that as Jacob Vlijm mentioned in his answer.
As for the case when you can't find what file an app uses, you can look under the hood of an app's behavior; one way is to look at open
syscalls in via strace
command. For example:
strace -e open firefox
Again, refer to strace
's manual for a set of advanced features and options that can help investigating app's behavior and open files.
edited Apr 28 at 20:11
answered Apr 28 at 20:06
![](https://i.stack.imgur.com/U1Jy6.jpg?s=32&g=1)
![](https://i.stack.imgur.com/U1Jy6.jpg?s=32&g=1)
Sergiy Kolodyazhnyy
65.3k9130286
65.3k9130286
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023071%2freset-application-to-its-default-state%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Just curious, but did any of the answers (or both) help you out?
â Jacob Vlijm
Apr 28 at 13:46
Marked accepted.
â Praveen Yadav
May 4 at 20:44