fabiocolacio / Marker

🖊 A gtk3 markdown editor
GNU General Public License v3.0
832 stars 75 forks source link

Remember window size #312

Closed justjosias closed 4 years ago

justjosias commented 4 years ago

This is an attempt at solving a part of #309.

I am currently lost at this error that occurs when I try to run ./marker:

(marker:29491): GLib-GIO-ERROR **: 13:42:20.106: Settings schema 'com.github.fabiocolacio.marker.preferences.window' does
not contain a key named 'window-width'
[1]    29491 trace trap  ./marker

It appears to have a simple fix, but I don't know where I missed adding the initialization of that configuration.

fabiocolacio commented 4 years ago

Each of those settings coresponds to a setting in the file data/com.github.fabiocolacio.marker.gschema.xml

You would need to update that file to "create" those settings before you can change them with the g_settings api.