Which files in $HOME defines the user preferences in gnome?

Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm backup/syncing my dotfiles in my $HOME-Directory via git. I don't want to sync everything of course, so I ignore everything via .gitignore and re-add the important files.
*
!.bash*
.*.swp
.bash_history
.bash_local
.bash_logout
!.profile
Which files are necessary to back up in an Ubuntu Gnome environment which belongs to the system settings, like user-specific preferences or theme settings?
gnome backup dot-files
add a comment |
I'm backup/syncing my dotfiles in my $HOME-Directory via git. I don't want to sync everything of course, so I ignore everything via .gitignore and re-add the important files.
*
!.bash*
.*.swp
.bash_history
.bash_local
.bash_logout
!.profile
Which files are necessary to back up in an Ubuntu Gnome environment which belongs to the system settings, like user-specific preferences or theme settings?
gnome backup dot-files
Most of it is stored in a binary database (gsettings/dconf, look in~/.config/dconf), so it's not suitable for Git.
– Olorin
Mar 12 at 11:22
@Olorin why not?
– Stephen Kitt
Mar 12 at 11:38
@StephenKitt if you're OK with keeping binary files with possibly frequent changes in Git, go ahead.
– Olorin
Mar 12 at 11:49
add a comment |
I'm backup/syncing my dotfiles in my $HOME-Directory via git. I don't want to sync everything of course, so I ignore everything via .gitignore and re-add the important files.
*
!.bash*
.*.swp
.bash_history
.bash_local
.bash_logout
!.profile
Which files are necessary to back up in an Ubuntu Gnome environment which belongs to the system settings, like user-specific preferences or theme settings?
gnome backup dot-files
I'm backup/syncing my dotfiles in my $HOME-Directory via git. I don't want to sync everything of course, so I ignore everything via .gitignore and re-add the important files.
*
!.bash*
.*.swp
.bash_history
.bash_local
.bash_logout
!.profile
Which files are necessary to back up in an Ubuntu Gnome environment which belongs to the system settings, like user-specific preferences or theme settings?
gnome backup dot-files
gnome backup dot-files
edited Mar 24 at 13:46
Jeff Schaller♦
44.9k1164147
44.9k1164147
asked Mar 12 at 11:11
Marc MMarc M
229212
229212
Most of it is stored in a binary database (gsettings/dconf, look in~/.config/dconf), so it's not suitable for Git.
– Olorin
Mar 12 at 11:22
@Olorin why not?
– Stephen Kitt
Mar 12 at 11:38
@StephenKitt if you're OK with keeping binary files with possibly frequent changes in Git, go ahead.
– Olorin
Mar 12 at 11:49
add a comment |
Most of it is stored in a binary database (gsettings/dconf, look in~/.config/dconf), so it's not suitable for Git.
– Olorin
Mar 12 at 11:22
@Olorin why not?
– Stephen Kitt
Mar 12 at 11:38
@StephenKitt if you're OK with keeping binary files with possibly frequent changes in Git, go ahead.
– Olorin
Mar 12 at 11:49
Most of it is stored in a binary database (gsettings/dconf, look in
~/.config/dconf), so it's not suitable for Git.– Olorin
Mar 12 at 11:22
Most of it is stored in a binary database (gsettings/dconf, look in
~/.config/dconf), so it's not suitable for Git.– Olorin
Mar 12 at 11:22
@Olorin why not?
– Stephen Kitt
Mar 12 at 11:38
@Olorin why not?
– Stephen Kitt
Mar 12 at 11:38
@StephenKitt if you're OK with keeping binary files with possibly frequent changes in Git, go ahead.
– Olorin
Mar 12 at 11:49
@StephenKitt if you're OK with keeping binary files with possibly frequent changes in Git, go ahead.
– Olorin
Mar 12 at 11:49
add a comment |
1 Answer
1
active
oldest
votes
Since GNOME settings are generally stored via the GSettings API, and some of those files are binaries/databases, your best bet is to rely on dconf tool:
To export settings:
dconf dump / > dconf-settings.ini
To import settings:
dconf load / < dconf-settings.ini
You could save the contents of $XDG_CONFIG_HOME/dconf(most of the time, it represents ~/.config/dconf) but that would not be suitable for git since those files are not plaintext.
This Gnome Settings export will also contain all settings related to Mate Desktop and Cinnamon Desktop since they are objects inside the root schema ( / ). To export those desktops settings only:
Cinnamon:
dconf dump /org/cinnamon/ > dconf-cinnamon.ini
Mate:
dconf dump /org/mate > dconf-mate.ini
Backup custom themes.
To backup your custom themes/icons, compressing the folders ~/.icons and ~/.themes should be enough. Maybe you should keep the original theme files you already have at your home dir...
It would be better usinggsettingsinstead ofdconf, which is more portable and reasonable.gsettingsuse schema id whiledconfas low-level implementation detail use schema path.
– 炸鱼薯条德里克
Mar 12 at 12:30
And how would you export all Gnome configurations using a one-liner wthgsettings? Do you have an example since, even inside Gnome Documentationdconfseems to be the right tool to dump configurations whilegsettingsis only to set, monitor and get those values? - systutorials.com/docs/linux/man/1-gsettings - Also, this document has no examples so, it's hard to seegsettingsas the adequate tool for this task...
– nwildner
Mar 12 at 16:29
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505849%2fwhich-files-in-home-defines-the-user-preferences-in-gnome%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Since GNOME settings are generally stored via the GSettings API, and some of those files are binaries/databases, your best bet is to rely on dconf tool:
To export settings:
dconf dump / > dconf-settings.ini
To import settings:
dconf load / < dconf-settings.ini
You could save the contents of $XDG_CONFIG_HOME/dconf(most of the time, it represents ~/.config/dconf) but that would not be suitable for git since those files are not plaintext.
This Gnome Settings export will also contain all settings related to Mate Desktop and Cinnamon Desktop since they are objects inside the root schema ( / ). To export those desktops settings only:
Cinnamon:
dconf dump /org/cinnamon/ > dconf-cinnamon.ini
Mate:
dconf dump /org/mate > dconf-mate.ini
Backup custom themes.
To backup your custom themes/icons, compressing the folders ~/.icons and ~/.themes should be enough. Maybe you should keep the original theme files you already have at your home dir...
It would be better usinggsettingsinstead ofdconf, which is more portable and reasonable.gsettingsuse schema id whiledconfas low-level implementation detail use schema path.
– 炸鱼薯条德里克
Mar 12 at 12:30
And how would you export all Gnome configurations using a one-liner wthgsettings? Do you have an example since, even inside Gnome Documentationdconfseems to be the right tool to dump configurations whilegsettingsis only to set, monitor and get those values? - systutorials.com/docs/linux/man/1-gsettings - Also, this document has no examples so, it's hard to seegsettingsas the adequate tool for this task...
– nwildner
Mar 12 at 16:29
add a comment |
Since GNOME settings are generally stored via the GSettings API, and some of those files are binaries/databases, your best bet is to rely on dconf tool:
To export settings:
dconf dump / > dconf-settings.ini
To import settings:
dconf load / < dconf-settings.ini
You could save the contents of $XDG_CONFIG_HOME/dconf(most of the time, it represents ~/.config/dconf) but that would not be suitable for git since those files are not plaintext.
This Gnome Settings export will also contain all settings related to Mate Desktop and Cinnamon Desktop since they are objects inside the root schema ( / ). To export those desktops settings only:
Cinnamon:
dconf dump /org/cinnamon/ > dconf-cinnamon.ini
Mate:
dconf dump /org/mate > dconf-mate.ini
Backup custom themes.
To backup your custom themes/icons, compressing the folders ~/.icons and ~/.themes should be enough. Maybe you should keep the original theme files you already have at your home dir...
It would be better usinggsettingsinstead ofdconf, which is more portable and reasonable.gsettingsuse schema id whiledconfas low-level implementation detail use schema path.
– 炸鱼薯条德里克
Mar 12 at 12:30
And how would you export all Gnome configurations using a one-liner wthgsettings? Do you have an example since, even inside Gnome Documentationdconfseems to be the right tool to dump configurations whilegsettingsis only to set, monitor and get those values? - systutorials.com/docs/linux/man/1-gsettings - Also, this document has no examples so, it's hard to seegsettingsas the adequate tool for this task...
– nwildner
Mar 12 at 16:29
add a comment |
Since GNOME settings are generally stored via the GSettings API, and some of those files are binaries/databases, your best bet is to rely on dconf tool:
To export settings:
dconf dump / > dconf-settings.ini
To import settings:
dconf load / < dconf-settings.ini
You could save the contents of $XDG_CONFIG_HOME/dconf(most of the time, it represents ~/.config/dconf) but that would not be suitable for git since those files are not plaintext.
This Gnome Settings export will also contain all settings related to Mate Desktop and Cinnamon Desktop since they are objects inside the root schema ( / ). To export those desktops settings only:
Cinnamon:
dconf dump /org/cinnamon/ > dconf-cinnamon.ini
Mate:
dconf dump /org/mate > dconf-mate.ini
Backup custom themes.
To backup your custom themes/icons, compressing the folders ~/.icons and ~/.themes should be enough. Maybe you should keep the original theme files you already have at your home dir...
Since GNOME settings are generally stored via the GSettings API, and some of those files are binaries/databases, your best bet is to rely on dconf tool:
To export settings:
dconf dump / > dconf-settings.ini
To import settings:
dconf load / < dconf-settings.ini
You could save the contents of $XDG_CONFIG_HOME/dconf(most of the time, it represents ~/.config/dconf) but that would not be suitable for git since those files are not plaintext.
This Gnome Settings export will also contain all settings related to Mate Desktop and Cinnamon Desktop since they are objects inside the root schema ( / ). To export those desktops settings only:
Cinnamon:
dconf dump /org/cinnamon/ > dconf-cinnamon.ini
Mate:
dconf dump /org/mate > dconf-mate.ini
Backup custom themes.
To backup your custom themes/icons, compressing the folders ~/.icons and ~/.themes should be enough. Maybe you should keep the original theme files you already have at your home dir...
edited Mar 14 at 2:10
answered Mar 12 at 11:23
nwildnernwildner
15k34581
15k34581
It would be better usinggsettingsinstead ofdconf, which is more portable and reasonable.gsettingsuse schema id whiledconfas low-level implementation detail use schema path.
– 炸鱼薯条德里克
Mar 12 at 12:30
And how would you export all Gnome configurations using a one-liner wthgsettings? Do you have an example since, even inside Gnome Documentationdconfseems to be the right tool to dump configurations whilegsettingsis only to set, monitor and get those values? - systutorials.com/docs/linux/man/1-gsettings - Also, this document has no examples so, it's hard to seegsettingsas the adequate tool for this task...
– nwildner
Mar 12 at 16:29
add a comment |
It would be better usinggsettingsinstead ofdconf, which is more portable and reasonable.gsettingsuse schema id whiledconfas low-level implementation detail use schema path.
– 炸鱼薯条德里克
Mar 12 at 12:30
And how would you export all Gnome configurations using a one-liner wthgsettings? Do you have an example since, even inside Gnome Documentationdconfseems to be the right tool to dump configurations whilegsettingsis only to set, monitor and get those values? - systutorials.com/docs/linux/man/1-gsettings - Also, this document has no examples so, it's hard to seegsettingsas the adequate tool for this task...
– nwildner
Mar 12 at 16:29
It would be better using
gsettings instead of dconf, which is more portable and reasonable. gsettings use schema id while dconf as low-level implementation detail use schema path.– 炸鱼薯条德里克
Mar 12 at 12:30
It would be better using
gsettings instead of dconf, which is more portable and reasonable. gsettings use schema id while dconf as low-level implementation detail use schema path.– 炸鱼薯条德里克
Mar 12 at 12:30
And how would you export all Gnome configurations using a one-liner wth
gsettings? Do you have an example since, even inside Gnome Documentation dconf seems to be the right tool to dump configurations while gsettings is only to set, monitor and get those values? - systutorials.com/docs/linux/man/1-gsettings - Also, this document has no examples so, it's hard to see gsettings as the adequate tool for this task...– nwildner
Mar 12 at 16:29
And how would you export all Gnome configurations using a one-liner wth
gsettings? Do you have an example since, even inside Gnome Documentation dconf seems to be the right tool to dump configurations while gsettings is only to set, monitor and get those values? - systutorials.com/docs/linux/man/1-gsettings - Also, this document has no examples so, it's hard to see gsettings as the adequate tool for this task...– nwildner
Mar 12 at 16:29
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505849%2fwhich-files-in-home-defines-the-user-preferences-in-gnome%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Most of it is stored in a binary database (gsettings/dconf, look in
~/.config/dconf), so it's not suitable for Git.– Olorin
Mar 12 at 11:22
@Olorin why not?
– Stephen Kitt
Mar 12 at 11:38
@StephenKitt if you're OK with keeping binary files with possibly frequent changes in Git, go ahead.
– Olorin
Mar 12 at 11:49