I’m currently building out a minimal Nix/Sway set up on my Pinebook Pro (arm). And for the most part, it’s been going great! However, i’ve run into an issue with anything chromium based (chromium, vscode, and codium) where when clicking “open file” or “open folder” (whatever would open the file picker), the whole program just freezes, no file picker shows up, and I have to force quit the program.
I was able to fix this issue with chromium by adding the following override.
nixpkgs.config.chromium.commandLineArgs = “–enable-features=UseOzonePlatform --ozone-platform=wayland”;
So now launching chromium from dmenu passes in those args and it works great. However, I set up the same command line args for vscode and codium and it doesnt work.
However, when I launch vscode and codium from the terminal with these args, it works! I get a file picker. But it won’t work from dmenu. Ideally i’d like to just set something and any chromium based thing will use wayland native.
I’ve also tried: environment.sessionVariables.NIXOS_OZONE_WL = “1”; as per the vscode wiki, and it doesn’t work either.
I’ve even set:
What am I missing here? How can I get vscode or codium to launch from dmenu with these flags and have a working file picker in sway?