You only need dconf to export/import gnome-terminal profiles.

To export all gnome-terminal profiles run:

$ dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf

To import the exported profiles above, run:

$ dconf load /org/gnome/terminal/legacy/profiles:/ < gnome-terminal-profiles.dconf

If you want to export and then import only a particular profile, you need to find out the profile’s id first. To list all profiles available:

$ dconf dump /org/gnome/terminal/legacy/profiles:/ | grep -e "\[\:\|visible-name"

You get an output like this one:

[:2afe8ac6-b873-4843-94e1-df6efbb8368d]
visible-name='Default'
[:c20ee9bb-547e-4e42-9865-ec27748eec5f]
visible-name='server1'
[:bd255b93-a970-45fe-aab6-4c3b969f3b9e]
visible-name='server2'

Let’s say I would like to export the server1 profile, the id for it is c20ee9bb-547e-4e42-9865-ec27748eec5f

To back it up:

$ dconf dump /org/gnome/terminal/legacy/profiles:/:c20ee9bb-547e-4e42-9865-ec27748eec5f/ > server1-gnome-terminal-profile.dconf

To load it:

$ dconf load /org/gnome/terminal/legacy/profiles:/:c20ee9bb-547e-4e42-9865-ec27748eec5f/ < server1-gnome-terminal-profile.dconf
How to export/import gnome-terminal profiles
Tagged on:                     

3 thoughts on “How to export/import gnome-terminal profiles

  • March 1, 2020 at 12:20 am
    Permalink

    some error:
    after “To import the exported profiles above, run:” it’s the same exact command

  • May 4, 2020 at 3:24 pm
    Permalink

    Thanks for reporting. It is fixed with the correct command.

  • January 2, 2023 at 5:21 am
    Permalink

    I’ve been trying to export / import my profiles using differents solution but never found a fully working one.

    the one you’re proposing here is perfect: thanks a lot for sharing it!

Leave a Reply

Your email address will not be published. Required fields are marked *

*