Custom keyboard shortcuts dissapear

Hey everyone! I’m not sure if this is an issue specific to Fedora 42 or a GNOME 48 problem, but my custom keyboard shortcuts disappear after every system update. Any ideas?

1 Like

Hi and welcome to :fedora: !

GNOME stores use-set keyboard shortcuts in the user’s dconf db, schema org.gnome.shell.keybindings. What you’re saying is that you’re setting keyboard shortcuts in GNOME Settings → Keyboard → Keyboard Shortcuts, and they get reset after a system upgrade[1]? I didn’t experience that.

You can check if the user-set keyboards are there (before and after the system-upgrade) with gsettings list-recursively org.gnome.shell.keybindings.


  1. As in from one Fedora version to another, e.g. 41 to 42. ↩︎

Yeah, that’s it — but only the custom shortcuts, even though not all of them. For example, my shortcut to open the terminal still works, but the rest get reset. They don’t appear in the list when I run `gsettings list…

When exactly did they get reset? Can you give some example of shortcuts that got reset? Were all of them saved via GNOME Settings, hence in dconf db under the above mentioned schema?

Yes, all of them were saved via GNOME Settings → Keyboard → Keyboard Shortcuts → Custom Shortcuts. They’ve gotten reset after I update my system (it has happened twice), and one of them is ‘nautilus /home/user/Downloads’. The others are for launching VS Code, Spotify, and a few other apps.

While it’s problematic to identify the cause, mitigating the effect is entirely possible:

# Back up settings
dconf dump /org/gnome/settings-daemon/plugins/media-keys/ > shortcuts.dconf

# Restore settings
dconf load /org/gnome/settings-daemon/plugins/media-keys/ < shortcuts.dconf

See also: Configuring Custom Default Values | dconf | Red Hat Documentation

2 Likes

I wonder if the issue is related to the fact that the user-created custom shortcuts are stored as relocatable schemas in dconf.

A GNOME Shell version upgrade might involve recreating/parsing the dconf db, and in order to read these relocatable schemas, the custom-keybindings key of the non-relocatable schema org.gnome.settings-daemon.plugins.media-keys has to be read first, but it somehow fails? This is just a supposition, I didn’t find any resources on this matter.

For relocatable schemas, the command is a bit different:

$ gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings

$ gsettings list-recursively org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/

$ gsettings list-recursively org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/

[...]

I had the same thing happen:

  1. only custom shortcuts were affected.
  2. one shortcut was not deleted: Hyper + 2/home/damir/Applications/cursor/cursor.AppImage
  3. the ones deleted were just running one command like Hyper + 3slack

I’ll re-add them again and post if I find other patterns.

I’m experiencing the same issue on Fedora 42 Workstation:

  • The shortcut for Discord (flatpak run com.discordapp.Discord, triggered with Shift+Ctrl+D) still works after the upgrade.
  • However, the shortcuts for uLauncher (ulauncher-toggle, Ctrl+Space) and for opening a new Terminal window (ptyxis --new-window, Super+Return) have disappeared after the upgrade.

Are those shortcuts used by other applications or something that is default in Gnome?

I don’t think so, but I’m not sure (I’ve checked GNOME settings and I didn’t found any shortcuts used by him, but I didn’t check all the settings of all the apps).

1 Like

I’ve an update: today the shortcut[1] disappeared again: yesterday evening (2025-06-18 before update) the shortcut was working, today (2025-06-19) they don’t.

This is my dnf transaction history:

Transaction ID : 178
Begin time     : 2025-06-19 00:44:05
Begin rpmdb    : 1b186e3de901ae6971f028788c5d49e0c7ab3b41e2c83ee3d5a18abccaa56a8d
End time       : 2025-06-19 00:44:19
End rpmdb      : ca287c4dfca04ea5760ea8a17cf4a02d359fa8dfff18b192721bce3400174bb1
User           : 1000 Arawindor <ara>
Status         : Ok
Releasever     : 42
Description    : dnf up --refresh -y
Comment        : 
Packages altered:
  Action   Package                                                 Reason          Repository
  Upgrade  xorg-x11-drv-nvidia-3:575.57.08-2.fc42.x86_64           Dependency      rpmfusion-nonfree-nvidia-driver
  Upgrade  xorg-x11-drv-nvidia-cuda-3:575.57.08-2.fc42.x86_64      User            rpmfusion-nonfree-nvidia-driver
  Upgrade  xorg-x11-drv-nvidia-cuda-libs-3:575.57.08-2.fc42.x86_64 Weak Dependency rpmfusion-nonfree-nvidia-driver
  Upgrade  xorg-x11-drv-nvidia-cuda-libs-3:575.57.08-2.fc42.i686   Dependency      rpmfusion-nonfree-nvidia-driver
  Upgrade  xorg-x11-drv-nvidia-kmodsrc-3:575.57.08-2.fc42.x86_64   Dependency      rpmfusion-nonfree-nvidia-driver
  Upgrade  xorg-x11-drv-nvidia-libs-3:575.57.08-2.fc42.i686        Dependency      rpmfusion-nonfree-nvidia-driver
  Upgrade  xorg-x11-drv-nvidia-libs-3:575.57.08-2.fc42.x86_64      Dependency      rpmfusion-nonfree-nvidia-driver
  Upgrade  xorg-x11-drv-nvidia-power-3:575.57.08-2.fc42.x86_64     Weak Dependency rpmfusion-nonfree-nvidia-driver
  Replaced xorg-x11-drv-nvidia-3:575.57.08-1.fc42.x86_64           Dependency      @System
  Replaced xorg-x11-drv-nvidia-cuda-3:575.57.08-1.fc42.x86_64      User            @System
  Replaced xorg-x11-drv-nvidia-cuda-libs-3:575.57.08-1.fc42.x86_64 Weak Dependency @System
  Replaced xorg-x11-drv-nvidia-cuda-libs-3:575.57.08-1.fc42.i686   Dependency      @System
  Replaced xorg-x11-drv-nvidia-kmodsrc-3:575.57.08-1.fc42.x86_64   Dependency      @System
  Replaced xorg-x11-drv-nvidia-libs-3:575.57.08-1.fc42.i686        Dependency      @System
  Replaced xorg-x11-drv-nvidia-libs-3:575.57.08-1.fc42.x86_64      Dependency      @System
  Replaced xorg-x11-drv-nvidia-power-3:575.57.08-1.fc42.x86_64     Weak Dependency @System

Transaction ID : 177
Begin time     : 2025-06-17 23:48:32
Begin rpmdb    : 6dcaf1c474bf56dfbec0930cce6d72dd3123e0b1f6130e59571e7562c4aa1c3a
End time       : 2025-06-17 23:48:38
End rpmdb      : 1b186e3de901ae6971f028788c5d49e0c7ab3b41e2c83ee3d5a18abccaa56a8d
User           : 0 Super User <root>
Status         : Ok
Releasever     : 42
Description    : dnf -y install --nogpgcheck --disablerepo=* /tmp/akmods.20Ka8kN9/results/kmod-nvidia-6.14.11-300.fc42.x86_64-575.57.08-2.fc42.x86_64.rpm
Comment        : 
Packages altered:
  Action  Package                                                       Reason Repository
  Install kmod-nvidia-6.14.11-300.fc42.x86_64-3:575.57.08-2.fc42.x86_64 User   @commandline

  1. opening a new Terminal window (ptyxis --new-window, Super+Return) ↩︎

Are you running X11 or Wayland?

Do you have any gnome extensions installed?

Thanks.

I’m running GNOME 48.2 in Wayland and I’ve installed this extensions:

I have some additional information: on my laptop, I’m using the same distribution (Fedora 42 Workstation), but I don’t have an Nvidia card and I’m not experiencing the issue.
Here is my configuration and last two updates:

I had the shortcuts dissapear again today, I only looked at updates and haven’t updated them. It might not be related to updates.

GNOME 48.2 Wayland

Topic update: I had the problem again today.
This is my last dnf update:

Transaction ID : 245
Begin time     : 2025-08-05 10:40:07
Begin rpmdb    : 7836ccd606e2dc23e42a56de5ac4f44b4f43158f7c89b7ba1d261197478ab980
End time       : 2025-08-05 10:40:35
End rpmdb      : ef2ea16d7cc8a73a26664f067c0cd59fa38bb16ec46e5564c1b24ef5fb436259
User           : 1000 user
Status         : Ok
Releasever     : 42
Description    : dnf up --refresh -y
Comment        : 
Packages altered:
  Action   Package                                      Reason          Repository
  Upgrade  gnome-shell-0:48.4-1.fc42.x86_64             Group           updates
  Upgrade  gnome-shell-common-0:48.4-1.fc42.noarch      Dependency      updates
  Upgrade  libsane-airscan-0:0.99.36-1.fc42.x86_64      Dependency      updates
  Upgrade  mingw32-libxslt-0:1.1.43-3.fc42.noarch       Dependency      updates
  Upgrade  mingw64-libxslt-0:1.1.43-3.fc42.noarch       Dependency      updates
  Upgrade  python3-boto3-0:1.39.16-1.fc42.noarch        Weak Dependency updates
  Upgrade  python3-botocore-0:1.39.16-1.fc42.noarch     Dependency      updates
  Upgrade  sane-airscan-0:0.99.36-1.fc42.x86_64         Dependency      updates
  Replaced gnome-shell-0:48.3-1.fc42.x86_64             Group           @System
  Replaced gnome-shell-common-0:48.3-1.fc42.noarch      Dependency      @System
  Replaced libsane-airscan-0:0.99.35-1.fc42.x86_64      Dependency      @System
  Replaced mingw32-libxslt-0:1.1.43-1.fc42.noarch       Dependency      @System
  Replaced mingw64-libxslt-0:1.1.43-1.fc42.noarch       Dependency      @System
  Replaced python3-boto3-0:1.39.15-1.fc42.noarch        Weak Dependency @System
  Replaced python3-botocore-0:1.39.15-1.fc42.noarch     Dependency      @System
  Replaced sane-airscan-0:0.99.35-1.fc42.x86_64         Dependency      @System

I’ve lost the ptyxis and ulauncher’s shortcut, but the discord shortcut didn’t disappeared (discord shortcut is the only that involve a flatpak package).