I recently upgraded from xubuntu 14.04 to xubuntu 16.04. The process finished but did not go smooth (I don't remember why).
firefox when I open a file (File -> Open File) the process crashes with the following error:
... GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'sort-directories-first'
I searched around the web and did not find anything relevant. Reinstalling
apt-get install --reinstall ...) did not change anything. I also tried rebuilding the schemas but the error is always the same:
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
The (not so) funny thing is that the key exists!
grep sort-directories-first /usr/share/glib-2.0/schemas/* Binary file /usr/share/glib-2.0/schemas/gschemas.compiled matches /usr/share/glib-2.0/schemas/org.gnome.nautilus.gschema.xml: <key type="b" name="sort-directories-first"> /usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml: <key type="b" name="sort-directories-first">
At the end I tried manually creating the key. With
gsettings it complains the key does not exist:
gsettings set org.gtk.Settings.FileChooser sort-directories-first false Not such key 'sort-directories-first'
dconf I can create that key but nothing changes:
dconf write /org/gtk/settings/file-chooser/sort-directories-first false