Niri: Difference between revisions

Sheevy (talk | contribs)
Changed the github URL for the bugtracker (following recent change in the upstream)
34j (talk | contribs)
Troubleshooting: Use wrapProgram instead of commandLineArgs for build performance
Line 79: Line 79:
{{code|<nowiki>slack --wayland-text-input-version=3</nowiki>}}
{{code|<nowiki>slack --wayland-text-input-version=3</nowiki>}}


Alternatively, if the package supports {{ic|commandLineArgs}}, the following may be used instead:
<code>wrapProgram</code> may be used to add the flag automatically:


{{code|<nowiki>(pkgs.vscode.override {
{{file|/etc/nixos/configuration.nix|nix|3=
  commandLineArgs = [
environment.systemPackages = [
     "--wayland-text-input-version=3"
  (pkgs.symlinkJoin {
   ];
    pname = pkgs.vscode.pname;
});</nowiki>}}
    paths = [ pkgs.vscode ];
    buildInputs = [ pkgs.makeWrapper ];
     postBuild = "wrapProgram $out/bin/code --add-flags --wayland-text-input-version=3";
   };)
];}}


=== XWayland apps not working ===
=== XWayland apps not working ===