Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import/export [g|d]conf settings to a file #292

Closed
gsemet opened this issue Mar 17, 2014 · 13 comments
Closed

import/export [g|d]conf settings to a file #292

gsemet opened this issue Mar 17, 2014 · 13 comments

Comments

@gsemet
Copy link
Member

gsemet commented Mar 17, 2014

Use case: store settings in a file to easily backup to github repository

@gsemet gsemet added this to the 0.6.0 milestone Mar 17, 2014
@gsemet gsemet self-assigned this Mar 17, 2014
@pypingou
Copy link
Member

It's more about import/export (in the pref window) because load/save implies that we move away from gconf/dconf which isn't such a great idea.

@gsemet
Copy link
Member Author

gsemet commented Mar 17, 2014

Agree

@gsemet gsemet changed the title load/save settings to file import/export [g|d]conf settings to a file Mar 17, 2014
@gsemet gsemet modified the milestones: 0.5.1, 1.0.0 Sep 7, 2014
@elgalu
Copy link

elgalu commented Sep 18, 2016

What about simply adding ~/.gconf/apps/guake directory into a github repository? that's not enough?

@gsemet
Copy link
Member Author

gsemet commented Sep 18, 2016

Not sure it will work, conf is stored in gconf

@elgalu
Copy link

elgalu commented Sep 18, 2016

Ah ok, so backing up gconf /apps/guake and /schemas/apps/guake paths recursively should suffice?

@elgalu
Copy link

elgalu commented Sep 18, 2016

i.e. is this correct?

Backup

gconftool-2 --dump /apps/guake > apps-guake.xml
gconftool-2 --dump /schemas/apps/guake > schemas-apps-guake.xml

Restore

gconftool-2 --load apps-guake.xml
gconftool-2 --load schemas-apps-guake.xml

@gsemet
Copy link
Member Author

gsemet commented Sep 18, 2016

Give a try. I test it next week

@gsemet gsemet modified the milestones: 3.0.0, 3.1.0 Jan 11, 2018
@bernardolm
Copy link

@gsemet gsemet modified the milestones: 3.1.0, 3.2.0 Apr 9, 2018
@etem
Copy link

etem commented Jul 27, 2018

i.e. is this correct?
Backup
gconftool-2 --dump /apps/guake > apps-guake.xml
gconftool-2 --dump /schemas/apps/guake > schemas-apps-guake.xml
Restore
gconftool-2 --load apps-guake.xml
gconftool-2 --load schemas-apps-guake.xml

Doesn't work with Ubuntu 18.04 :(

@gsemet
Copy link
Member Author

gsemet commented Jul 27, 2018

Guake now use dconf and no more gconf

@bernardolm
Copy link

bernardolm commented Jul 30, 2018

Nowadays, with dconf, I have be resolved with this:

backup_guake () {
    dconf dump /apps/guake/ > ${HOME}/Dropbox/backup_of_my_guake_settings
}

restore_guake () {
    dconf reset -f /apps/guake/
    dconf load /apps/guake/ < ${HOME}/Dropbox/backup_of_my_guake_settings
}

... but I guess it isn't a perfect solution yet

@gsemet
Copy link
Member Author

gsemet commented Jul 31, 2018

seems legit :) I would love to have it integrated in the preference panel :)

Graham42 added a commit to Graham42/dot_files that referenced this issue Nov 1, 2018
Tilda was being a bit of a pain. The original reason for switching away
from guake was no way to configure as code.

Discovered a workaround:
Guake/guake#292 (comment)

Against tilda:
- Using tilda required hacking the desktop file to point to the config
we want.
- Tilda had to be closed for any config changes made directly to the
config file, otherwise would be overwritten when tilda closed.
- Tilda didn't have an easy way to switch between a light and dark theme
which is important for working at night vs working outside at a cafe.
@mlouielu
Copy link
Collaborator

This should be done by #1517 (using dconf)

@gsemet gsemet closed this as completed Apr 17, 2019
@gsemet gsemet modified the milestones: Backlog, -- NEXT VERSION -- Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants