Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

konsole: fix arrow keys #51412

Merged
merged 1 commit into from
Jan 9, 2019
Merged

Conversation

Synthetica9
Copy link
Member

Motivation for this change

(partially?) fixes #29951

Couldn't get Yakuake to work, so haven't tested that.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@Synthetica9 Synthetica9 requested a review from ttuegel as a code owner December 2, 2018 22:53
@GrahamcOfBorg GrahamcOfBorg added 6.topic: qt/kde 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Dec 2, 2018
@Synthetica9
Copy link
Member Author

CC @michaelpj @mbertolutti @qknight

@michaelpj
Copy link
Contributor

Is this the right fix? If Konsole does indeed look in XDG_DATA_DIRS then it's just a matter of making sure all the relevant stuff gets linked into the profile, since that already goes in XDG_DATA_DIRS. But that's somewhat tricky, since currently we can only decide to link in subdirs of share in a module.

@Synthetica9
Copy link
Member Author

Synthetica9 commented Dec 3, 2018 via email

@michaelpj
Copy link
Contributor

This will work for this issue, but e.g. if you add other programs that provide data files that konsole uses then it won't pick them up.

The usual mechanism for this is XDG_DATA_DIRS. You're adding the konsole /share output, which will make it pick up the stuff packaged with konsole, but other stuff needs to go in the system XDG_DATA_DIRS for konsole to find it. But if we had that working then we wouldn't need this at all, since the konsole /share files would be picked up in exactly the same way.

So why don't we pick them up? The answer is because we don't (usually) merge in all the subdirectories of /share. So we just ignore the ones that konsole needs. Normally you can only change that with a nixos module. The Plasma module, for example, does so.

Previously I've thought that was good, but increasingly I wonder if we should just link the whole of /share by default. (see #47173)

So I guess this is an okay solution, but we should be aware that konsole may still not work "properly" when you're not running Plasma.

@michaelpj
Copy link
Contributor

The alternative solution would be to add a programs.konsole module.

@Synthetica9
Copy link
Member Author

So I guess this is an okay solution, but we should be aware that konsole may still not work "properly" when you're not running Plasma.

I'm not running Plasma, so it's certainly not a strict requirement for this to work.

@michaelpj
Copy link
Contributor

OOI, you say you couldn't make Yakuake work, but have you tried wrapping it so it has access to Konsole's data files? I think it uses a lot of the same code under the hood.

@ttuegel
Copy link
Member

ttuegel commented Dec 8, 2018

I'm not running Plasma, so it's certainly not a strict requirement for this to work.

I believe the way to fix this problem for all applications is to add this to your configuration.

@Mic92 Mic92 merged commit f0f7531 into NixOS:master Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: qt/kde 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arrow keys don't work in konsole, yakuake
5 participants