NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.42k stars 13.63k forks source link

GNOME Control Center dies on clicking "View and Customize Shortcuts" #188404

Closed SamLukeYes closed 5 months ago

SamLukeYes commented 2 years ago

Describe the bug

After clicking "View and Customize Shortcuts", Control Center dies. The following error can be seen if launched in terminal:

(gnome-control-center:39317): GLib-GIO-ERROR **: 22:53:41.107: Settings schema 'org.gnome.GPaste' is not installed

Steps To Reproduce

Steps to reproduce the behavior:

  1. Launch gnome-control-center in terminal
  2. Go to keyboard settings
  3. Click "View and Customize Shortcuts"

Expected behavior

The shortcut setting interface should appear.

Additional context

I've set programs.gpaste.enable = true in my NixOS configuration. The error is likely to be related to GPaste, but GPaste works without issues for me so far.

Notify maintainers

@bobby285271 @hedning @jtojnar @dasj19 @maxeaubrey

Metadata

jtojnar commented 2 years ago

This is a known issue, you need to install GPaste through programs.gpaste.enable NixOS option.

SamLukeYes commented 2 years ago

This is a known issue, you need to install GPaste through programs.gpaste.enable NixOS option.

This is exactly what I have done before I encounter the issue.

jtojnar commented 2 years ago

Sorry, on the phone and missed that. Also forgot to mention you need to re-log in since the module sets new environment variables.

SamLukeYes commented 2 years ago

Sorry, on the phone and missed that. Also forgot to mention you need to re-log in since the module sets new environment variables.

Actually, I've set programs.gpaste.enable = true when I installed NixOS and reboot my system every day, but still found the issue yesterday :confused:

jtojnar commented 2 years ago

What terminal emulator and shell do you use? It sounds like it doesn't inherit the environment set by PAM.

SamLukeYes commented 2 years ago

What terminal emulator and shell do you use? It sounds like it doesn't inherit the environment set by PAM.

I'm using gnome-console as default terminal and xonsh as login shell.

milachew commented 1 year ago

Are you sure the problem still exists? On my configuration, it doesn't exist.

NixOS 22.11, Linux 5.15.93, has installed from graphical installation.

On configuration.nix I have deleted all i18n lines, left only i18n.supportedLocales which set to "all".

изображение

jtojnar commented 1 year ago

It will only happen when you have shortcut extensions such as GPaste installed (and not added to sessionPath).

Abdillah commented 10 months ago

Then, this is likely due to different shell other than bash issue, right? I use Nushell and encountered it as well.

SamLukeYes commented 5 months ago

图片 The issue is now gone for xonsh.