celluloid icon indicating copy to clipboard operation
celluloid copied to clipboard

Where are local settings stored for the non-flatpak version of celluloid?

Open MichaelSebero opened this issue 1 year ago • 6 comments

Expected Results: a config file in /home/.config/celluloid

MichaelSebero avatar Nov 09 '23 20:11 MichaelSebero

I'm trying to export a specific celluloid configuration to a dotfile repo.

MichaelSebero avatar Nov 09 '23 20:11 MichaelSebero

Settings are stored in the dconf database. You can export Celluloid's settings by running dconf dump /io/github/celluloid-player/celluloid/.

gnome-mpv avatar Nov 09 '23 23:11 gnome-mpv

Aright so I just export this configuration to /home/.config/celluloid? under what name should the configuration be for it to be recognized by the application?

MichaelSebero avatar Nov 10 '23 01:11 MichaelSebero

You have to use dconf load to load settings back in from the file. It won't be loaded automatically.

Alternatively, you can set the envvar GSETTINGS_BACKEND=keyfile and settings will be automatically saved to ~/.config/glib-2.0/settings/keyfile.

gnome-mpv avatar Nov 10 '23 03:11 gnome-mpv

Not sure what I'm doing here... when I load the keyfile from the glib-2.0 directory the console freezes up. Are you sure there's no config file stored on the system which contains the celluloid configuration I could copy to overwrite it automatically on a new system which doesn't have my configuration yet?

MichaelSebero avatar Nov 10 '23 13:11 MichaelSebero

There's also the dconf database file at ~/.config/dconf/user, but that's shared by all applications that use GSettings (most GTK applications).

gnome-mpv avatar Nov 11 '23 19:11 gnome-mpv