thunderbird, firefox: fix file conflict for native messaging hosts
On Linux, both Thunderbird and Firefox use the same directory to contain native messaging host modules. On this platform, we have to merge both directories with native hosts into one. The patch introduces a separate helper module to manage native host directory generation. Now program modules (firefox, thunderbird) declare native hosts to initialize; while the new helper module determines *where* and *how* to merge them on disc. Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
parent
fadb9cba44
commit
7e81c581a5
5 changed files with 108 additions and 66 deletions
|
|
@ -37,14 +37,18 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Confirm that both Firefox and Thunderbird can be configured at the same time.
|
||||
programs.firefox = { enable = true; };
|
||||
|
||||
programs.thunderbird = {
|
||||
enable = true;
|
||||
|
||||
# Disable warning so that platforms' behavior is the same
|
||||
darwinSetupWarning = false;
|
||||
|
||||
# Darwin doesn't support wrapped Thunderbird, using unwrapped instead
|
||||
package = realPkgs.thunderbird-unwrapped;
|
||||
# Darwin doesn't support wrapped Thunderbird, using unwrapped instead;
|
||||
# using -latest- because ESR is currently broken on Darwin
|
||||
package = realPkgs.thunderbird-latest-unwrapped;
|
||||
|
||||
profiles = {
|
||||
first = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue