FS#70153 - [gedit] core dump : 'org.gnome.nautilus.preferences' does not contain a key named 'confirm-trash'

Attached to Project: Arch Linux
Opened by Craw Daddy (crawdaddy4) - Thursday, 25 March 2021, 00:48 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 25 March 2021, 14:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description: gedit 38 crashes on start when opened in GNOME 40.0


Additional info:
Package version: gedit 3.38.1-1
Error message received:

(gedit:2785): GLib-GIO-ERROR **: 20:21:46.663: Settings schema 'org.gnome.nautilus.preferences' does not contain a key named 'confirm-trash'

Upstream bug report: https://gitlab.gnome.org/GNOME/gedit/-/merge_requests/102
Upstream patch: https://gitlab.gnome.org/GNOME/gedit/-/commit/8f6490c602991a456413e0053429bb7b4c70d4b6?merge_request_iid=102

Steps to reproduce:
- Use GNOME 40.0
- Open gedit

Proposed solutions:
- Update gedit and dependencies (tepl 6.0, ...)
or
- Patch gedit 38.1-1 (current in repo) from commit listed above. Attached is a `git format-patch` and the associated PKGBUILD line to patch, which can be placed in prepare():

patch --forward --input="${startdir}/0001-file-browser-drop-use-of-confirm-trash.patch" $srcdir/$pkgname/plugins/filebrowser/gedit-file-browser-plugin.c
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Thursday, 25 March 2021, 14:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  gedit 40.0-1
Comment by Sébastien Luttringer (seblu) - Thursday, 25 March 2021, 02:59 GMT
Same error message and crash with cinnamon as a window manager.
Comment by Cristian C. (ckristi) - Thursday, 25 March 2021, 07:39 GMT
Happens to me also after yesterday's upgrade of nautilus and gnome-desktop.
Found a workaround, changing /org/gnome/gedit/plugins/active-plugins
* from "['spell', 'sort', 'modelines', 'filebrowser', 'docinfo']"
* to "['spell', 'sort', 'modelines', 'docinfo']"

using the dconf command line:
dconf write /org/gnome/gedit/plugins/active-plugins "['spell', 'sort', 'modelines', 'docinfo']"
Comment by Chris Billington (chrisjbillington) - Thursday, 25 March 2021, 11:41 GMT
Kind of off-topic, but this is why Arch doesn't support partial upgrades. The rollout of GNOME 40 packages in a drip-by-drip manner is essentially a partial upgrade, as we are using a different combination of versions to what upstream is testing. This is asking for trouble, and should be avoided.
Comment by Philip Müller (philm) - Thursday, 25 March 2021, 11:47 GMT
Simply update **gedit** to 40.0.
Comment by Vishnudev (kvishnudev) - Thursday, 25 March 2021, 12:16 GMT
how to update **gedit** to 40.0. ?
Comment by Matthias Stiller (pandinusimp) - Thursday, 25 March 2021, 13:38 GMT
Same here.

@ckristi thanks for the workaround!
Comment by Paulo Fino (burafino) - Thursday, 25 March 2021, 13:42 GMT
gedit is still at 3.38 while nautilus has been upgraded to 40 in the repos, so the temporary solution is to disable the filebrowser plugin in gedit through dconf, as @ckristi pointed out, wait for gedit to be upgraded to 40 and then re-enable the filebrowser plugin.
Comment by Erick Will (erickwill) - Thursday, 25 March 2021, 14:56 GMT
@ckristi thanks for the workaround! It did the trick.

Loading...