GNOME Shell stalls for 0.5-1 seconds somewhere 5-20 seconds after opening certain programs
This is really bizarre. After opening some applications, like Chromium, Snes9x, a couple others, gnome-shell will stall with high CPU usage for about a second, roughly 5-20 seconds after the program starts, usually on a 5 second interval.
I straced it, and it appears to be opening a series of .desktop files and checking their validity at those times:
Strace log
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.config/mimeapps.list", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=277, ...}) = 0
[pid 1495] read(24, "[Added Associations]\ninode/direc"..., 4096) = 277
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] stat("/home/bearoso/.local/share//mime/mime.cache", 0x7ffffa68d390) = -1 ENOENT (No such file or directory)
[pid 1495] stat("/home/bearoso/.local/share//mime/globs", {st_mode=S_IFREG|0644, st_size=1704, ...}) = 0
[pid 1495] munmap(0x7f9ab8b2f000, 157000) = 0
[pid 1495] stat("/home/bearoso/.local/share//mime/mime.cache", 0x7ffffa68d2b0) = -1 ENOENT (No such file or directory)
[pid 1495] stat("/home/bearoso/.local/share//mime/globs2", {st_mode=S_IFREG|0644, st_size=1845, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share//mime/globs2", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=1845, ...}) = 0
[pid 1495] read(24, "# This file was automatically ge"..., 4096) = 1845
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] stat("/home/bearoso/.local/share//mime/magic", {st_mode=S_IFREG|0644, st_size=12, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share//mime/magic", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=12, ...}) = 0
[pid 1495] read(24, "MIME-Magic\0\n", 4096) = 12
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share//mime/aliases", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share//mime/subclasses", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share//mime/icons", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=50, ...}) = 0
[pid 1495] read(24, "application/futuresplash:x-kde-n"..., 4096) = 50
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share//mime/generic-icons", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] stat("/usr/local/share//mime/mime.cache", 0x7ffffa68d2b0) = -1 ENOENT (No such file or directory)
[pid 1495] stat("/usr/local/share//mime/globs2", 0x7ffffa68d2b0) = -1 ENOENT (No such file or directory)
[pid 1495] stat("/usr/local/share//mime/globs", 0x7ffffa68d2b0) = -1 ENOENT (No such file or directory)
[pid 1495] stat("/usr/local/share//mime/magic", 0x7ffffa68d2b0) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/usr/local/share//mime/aliases", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/usr/local/share//mime/subclasses", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/usr/local/share//mime/icons", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/usr/local/share//mime/generic-icons", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 1495] stat("/usr/share//mime/mime.cache", {st_mode=S_IFREG|0644, st_size=157000, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/usr/share//mime/mime.cache", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=157000, ...}) = 0
[pid 1495] mmap(NULL, 157000, PROT_READ, MAP_SHARED, 24, 0) = 0x7f9ab8b2f000
[pid 1495] close(24) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-pdf.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=219, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 219
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-mwl.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=227, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 227
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-jfif.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=224, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 224
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-url.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=229, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 229
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-png.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=221, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 221
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-art.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=215, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 215
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/qb64.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=QB64 Progra"..., 4096) = 294
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/home/bearoso/Desktop/qb64/run_qb64.sh", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine/Programs/Neophyte/Neophyte.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=327, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Neophyte\nEx"..., 4096) = 327
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine/Programs/Windows Updates Downloader/Windows Updates Downloader.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=390, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Windows Upd"..., 4096) = 390
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-scn.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=269, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 269
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine/Programs/nGlide/Configurator.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=336, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Configurato"..., 4096) = 336
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-xml.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=219, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 219
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-crt.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=218, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 218
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/chrome-blpcfgokakmgnkcojhhkbfbldkacnbeo-Default.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0600, st_size=343, ...}) = 0
[pid 1495] read(24, "#!/usr/bin/env xdg-open\n[Desktop"..., 4096) = 343
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/opt/google/chrome-unstable/google-chrome-unstable", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-appref-ms.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=241, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 241
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine/Programs/Titanium/Mercenaries/Play Mercenaries.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=388, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Play Mercen"..., 4096) = 388
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-crd.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=239, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 239
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine/Programs/Koplio/Koplio's Story.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=351, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Koplio's St"..., 4096) = 351
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/bsnes.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=124, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=bsnes\nComme"..., 4096) = 124
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/lib/jvm/default/bin/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/site_perl/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/vendor_perl/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/core_perl/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/opt/bin/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/home/bearoso/scripts/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/home/bearoso/android-sdk/platform-tools/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/home/bearoso/scripts/depot_tools/bsnes", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-msp.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=237, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 237
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/chrome-aohghmighlieiainnegkcijnfilokake-Default.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0600, st_size=340, ...}) = 0
[pid 1495] read(24, "#!/usr/bin/env xdg-open\n[Desktop"..., 4096) = 340
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/opt/google/chrome-unstable/google-chrome-unstable", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/snes9x-gtk.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=230, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Snes9x\nComm"..., 4096) = 230
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/home/bearoso/Desktop/snes9x-gtk/git/gtk/snes9x-gtk", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/home/bearoso/Desktop/snes9x-gtk/git/gtk/snes9x-gtk", {st_mode=S_IFREG|0755, st_size=14965384, ...}) = 0
[pid 1495] access("/home/bearoso/Desktop/snes9x-gtk/git/gtk/snes9x-gtk", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/home/bearoso/Desktop/snes9x-gtk/git/gtk/snes9x-gtk", {st_mode=S_IFREG|0755, st_size=14965384, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine/Programs/Windows Updates Downloader/Uninstall WUD.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=362, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Uninstall W"..., 4096) = 362
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-wri.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=217, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 217
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine/Programs/Titanium/Mercenaries/Uninstall Mercenaries.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=356, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Uninstall M"..., 4096) = 356
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine/Programs/Neophyte/Neophyte Readme.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=341, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nName=Neophyte Re"..., 4096) = 341
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-crds.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=247, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 247
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-gif.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=221, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 221
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-ram.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0644, st_size=217, ...}) = 0
[pid 1495] read(24, "[Desktop Entry]\nType=Application"..., 4096) = 217
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/usr/local/sbin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/local/bin/env", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] access("/usr/bin/env", X_OK) = 0
[pid 1495] getuid() = 1000
[pid 1495] stat("/usr/bin/env", {st_mode=S_IFREG|0755, st_size=42944, ...}) = 0
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/chrome-pjkljhegncpnkpknbcohdijeoejaedia-Default.desktop", O_RDONLY) = 24
[pid 1495] fstat(24, {st_mode=S_IFREG|0600, st_size=341, ...}) = 0
[pid 1495] read(24, "#!/usr/bin/env xdg-open\n[Desktop"..., 4096) = 341
[pid 1495] read(24, "", 4096) = 0
[pid 1495] close(24) = 0
[pid 1495] access("/opt/google/chrome-unstable/google-chrome-unstable", X_OK) = -1 ENOENT (No such file or directory)
[pid 1495] openat(AT_FDCWD, "/home/bearoso/.local/share/applications/wine-extension-vbs.desktop", O_RDONLY) = 24
I wrote Snes9x, so I know it's not doing anything related to those .desktop files. gnome-shell seems to be taking upon itself the need to scan them when certain applications are opened, and it causes big hiccups.
This is with GNOME 3.30.2 on Arch Linux, both packaged and manually built.