When we have thunderbird
and firefox
both in firejail
’s wrappedBinaries
, we run into trouble trying to click links from thunderbird. This is the configuration:
programs.firejail = {
enable = true;
wrappedBinaries = let browserExtraArgs = [
"--dbus-user.talk=org.freedesktop.portal.*" # For screen sharing
"--whitelist=~/Pictures" # For uploading screenshots
# for running firefox from thunderbird
# without this clicking a link opens the application picker
"--whitelist=/run/current-system/sw/bin/firefox"
]; in {
firefox = {
executable = "${pkgs.lib.getBin pkgs.firefox}/bin/firefox";
profile = "${pkgs.firejail}/etc/firejail/firefox.profile";
extraArgs = browserExtraArgs;
};
thunderbird = {
executable = "${pkgs.lib.getBin pkgs.thunderbird}/bin/thunderbird";
profile = "${pkgs.firejail}/etc/firejail/thunderbird.profile";
extraArgs = browserExtraArgs;
};
};
};
and we get this error:
/run/current-system/sw/bin/firefox: line 2: /run/wrappers/bin/firejail: No such file or directory
I tried adding --whitelist=/run/wrappers/bin/firejail
, but it has no effect. I also thought maybe it’s failing to find the interpreter, so I ran patchelf --print-interpreter /run/wrappers/bin/firejail
and stuck the output in --whitelist=
but that also didn’t help.