Nixpkgs: Arrow keys don't work in konsole, yakuake

Created on 30 Sep 2017  路  8Comments  路  Source: NixOS/nixpkgs

Issue description

The arrow keys, and also Home, End etc. don't work in konsole or yakuake.

Pressing them does nothing - in particular it does not print an escape code, which makes me think that this isn't a TERMINFO problem.

I am using these from XFCE, rather than KDE, but I would hope that that would be supported.

Steps to reproduce

Install konsole. Try to use the arrow keys.

Technical details

  • System: 18.03pre116572.9824ca6975 (Impala)
  • Nix version: 1.11.15
  • Nixpkgs version: 18.03pre116572.9824ca6975
  • Sandboxing enabled: yes
qkde

Most helpful comment

The navigation keys are not working because konsole can't find the data file for the default keyboard translator.

As a temporary workaround, I manually placed default.keytab in my home directory under .kde/share/apps/konsole/.

For a real fix, konsole would need to look at the correct path in the nix store. Right now it relies on QStandardPaths::GenericDataLocation. Maybe this should include /nix/store/<application>/share?

All 8 comments

I think it was @edolstra that mentioned this on the ~mailing list~ #nixos as well. Did you find a solution?

I didn't, I switched to Plasma.

Possibly relevant: running showkey I get output for arrow keys, but nothing when running showkey -a.

i switched to xfce4-terminal but we need to fix this, konsole is rather important for us.

I also switched to Plasma, where it works.

One thing I think I discovered when trying to debug this is that it is not a TERM issue, or anything relating to interpretation of escape sequences. Rather than getting uninterpreted escape sequences, it appears that konsole just doesn't get sent the sequences at all.

@michaelpj xev started from konsole can still get cursor keys, konsole still can't receive them.

The navigation keys are not working because konsole can't find the data file for the default keyboard translator.

As a temporary workaround, I manually placed default.keytab in my home directory under .kde/share/apps/konsole/.

For a real fix, konsole would need to look at the correct path in the nix store. Right now it relies on QStandardPaths::GenericDataLocation. Maybe this should include /nix/store/<application>/share?

@mbertolutti this solution is awesome, can you also fix the problem in nixpkgs? afterwards contact me to get a reward!

Was this page helpful?
0 / 5 - 0 ratings