You are not logged in.
I recently update my Arch, and I am currently running kernel version 5.6.6-arch1-1. When I try to open a file finder window either from Firefox or from Chrome (e.g. uploading an email attachment), the browser crashes. The error given in Firefox is:
(firefox:3606): GLib-GIO-ERROR **: 19:32:17.971: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column'
ExceptionHandler::GenerateDump cloned child 3841
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Trace/breakpoint trap (core dumped)Now, following along with some posts I found online, I discovered that GLib searchers for these gtk schemas based on what is in the XDG_DATA_DIRS environment variable. However, I found that in my case that variable was empty. In my ~/.xinitrc I added a line
export XDG_DATA_DIRS=/usr/share/:/usr/local/shareAnd restarted the X session. However, the error persists and now I am not sure what to do. I ran find -iname org.gtk.Settings.FileChooser / and the only result is in /usr/share/glib-2.0/schemas/ as it should be. Furthermore, that xml file has a field name show-type-column so if the system is finding it (which I am not sure of), then everything should be alright.
I imagine the fact that XDG_DATA_DIRS is not set is actually indicative of a deeper issue possibly related to the one at hand, and that my hacky way of setting it is probably obscuring things.
Does anyone have pointers as to what to do? This is extremely inconvenient so I am all ears.
P.S. Wasn't sure if this should go here or the Newbie's Corner. I'm not technically a Newbie since I've been using Arch a few years, but let me know if this should be moved.
EDIT:
I fixed this by recompiling the schemas using
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/and also reinstalling firefox
sudo pacman -S firefoxRecompiling the schemas on its own did not fix it, but neither did reinstalling Firefox as I tried that the other day. Somehow the combination of the two worked.
Last edited by gpxl (2020-04-27 18:02:18)
Offline
The file you need to check seems to be:
/usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xmlI think it is provided by glib2
Mine contains this key:
<key name='show-type-column' type='b'>
<default>true</default>
<summary>Show file types</summary>
<description>
Controls whether the file chooser shows a column with file types.
</description>
</key>Also I do not have an XDG_DATA_DIRS variable set.
You might try reinstalling glib2
Offline
I just double checked and that file exists and it looks as yours does:
<key name='show-type-column' type='b'>
<default>true</default>
<summary>Show file types</summary>
<description>
Controls whether the file chooser shows a column with file types.
</description>
</key>I also just tried reinstalling glib up it was up to date. I currently have glib2-2.64.2-1.
Offline