Saving files to desktop (from e.g. gedit) is very slow
📦 Version and System
$ gnome-shell --version
GNOME Shell 3.32.0
$ nautilus --version
GNOME nautilus 3.32.0
Segmentation fault (core dumped)
$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.04
DISTRIB_CODENAME=disco
DISTRIB_DESCRIPTION="Ubuntu 19.04"
NAME="Ubuntu"
VERSION="19.04 (Disco Dingo)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.04"
VERSION_ID="19.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=disco
UBUNTU_CODENAME=disco
$ cat /usr/share/gnome-shell/extensions/desktop-icons@csoriano/metadata.json
{"name": "Desktop Icons", "description": "Add icons to the desktop", "uuid": "desktop-icons@csoriano", "shell-version": ["3.30.0"]}
📜 Description of the Issue
To reproduce:
- Create a text file (foo.txt) on the desktop and open in gedit.
- Type a few lines in the file and save it.
Expected: the file saves more or less instantly.
Observed:
- The file takes several seconds to save.
- The following lines appear in the journal:
Apr 26 22:20:40 khaeru-laptop gnome-shell[3205]: JS ERROR: TypeError: fileItem is null
_updateDesktopIfChanged@/usr/share/gnome-shell/extensions/desktop-icons@csoriano/desktopManager.js:339:17
_monitorDesktopFolder/<@/usr/share/gnome-shell/extensions/desktop-icons@csoriano/desktopManager.js:299:89
Notes:
- Repeating # 1 and # 2 with a file that is in another folder (i.e., not on the desktop), the file saves instantly, and the log messages do not appear.
- Discovered while trying to diagnose lp#1826219.
- Downstream bug lp#1826604.