Commit Graph
130 Commits
Author SHA1 Message Date
Michal Sojka 3eb0a0f921 firefox: Make CUPS printers visible in the print dialog
Firefox 81 introduced a new print dialog. Under NixOS, this dialog
offers only "Save as PDF" as the destination. To print to a real
printer, one has to click "Print using the system dialog" and print
from there. This is not only one unnecessary extra click, but the
system dialog also does not offer preview.

With this commit, Firefox starts offering real printers in its
printing dialog, removing the above mentioned deficiencies.

CUPS is needed because Firefox uses dlopen() to load libcups.so.2 at
runtime. See
https://searchfox.org/mozilla-central/rev/b52cf6bbe214bd9d93ed9333d0403f7d556ad7c8/widget/nsCUPSShim.cpp#28

(cherry picked from commit 5102a1247103e7f23fdad9710f1887807b31e37f)
2021-06-10 17:47:30 +00:00
Nicolas B. Pierron 440f0ac466 firefox-bin: Avoid including both the wrapped and unwrapped version when using nix run command.
In order to make the man pages accessible, the previous code used
nix-support/propagated-user-env-packages. However this file is also used to set
the PATH when the application is executed with `nix run`, thus including the
wrapped and the wrappee in the environment.

Having the wrappee enumerated first in the environment caused `firefox` to
default to the wrappee, and as such not being able to find a proper GTK. This
was a source of failures while opening a file-picker.

This change removes the code to propagate the wrappe in the environment, as the
man pages are already linked in the wrapper output.

(cherry picked from commit efef092ba59259fb2654038bbd952baca5c8bab7)
2021-06-07 16:08:19 +00:00
Jan Tojnar 468cb5980b gnome: rename from gnome3
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08 09:47:42 +02:00
Martin Weinelt e75f053238 Merge pull request #119434 from ooesili/firefox-ld-path-prefix
Add Firefox libs to beginning of LD_LIBRARY_PATH
2021-04-22 20:25:45 +02:00
Sebastian Graf fa7004fd29 firefox: Remove SNAP_NAME=firefox in wrapper
082ed38 introduced it to fix the profile-per-install policy of FF 67. But since
FF 69 (or 68?), there is `MOZ_LEGACY_PROFILES`, which we use since 87e2618.
There is no reason for the `SNAP_NAME=firefox` workaround anymore.

Additionally, the combination of `SNAP_NAME=firefox` with
a large ~/.nix-profile/share in `XDG_DATA_DIRS` triggered
https://bugzilla.mozilla.org/show_bug.cgi?id=1569625 for me, so this really
fixes a bug in my configuration.

The only downside of this approach is that we lose support for running FF 67
(and possibly 68).
2021-04-19 14:33:19 +02:00
Wesley Merkel 2fc271ffdd Add Firefox libs to beginning of LD_LIBRARY_PATH
When firefox is executed by programs that also make changes to
`LD_LIBRARY_PATH`, the paths can conflict causing firefox to look for
shared libraries in the wrong location. This is because the wrapper
script around firefox *appends* library paths to `LD_LIBRARY_PATH`
instead of prepending them, causing library paths that are already in
the environment to take precedence over the library paths that firefox
depends on.

As an example, Discord and firefox both depend on different versions of
libnss. When Discord launches firefox, which happens when clicking on
hyperlinks, the path in `LD_LIBRARY_PATH` to libnss set by Discord takes
precedence over then one set by the firefox wrapper script causing
firefox to load a different version of libnss than the one it was built
against. This causes a fatal error in firefox which prevents it from
starting.

This commit fixes this issue by switching the firefox wrapper script to
*prepend* its library paths to `LD_LIBRARY_PATH`.

Fixes #118432
2021-04-14 10:52:28 -05:00
Luis Hebendanz 94d7d46e20 firefox/wrapper.nix: Fixed firefox is always 'managed by your organization' 2021-04-10 01:46:18 +02:00
Sandro Jäckel dcb501f993 kerberos: deprecate alias 2021-04-04 03:18:56 +02:00
Dominik Xaver Hörl ac2e3ef270 firefox/wrapper: clean up plugin related code 2021-02-09 19:52:54 +01:00
Bernardo Meurer 76dc1086dc firefox: remove flash support 2021-02-08 09:38:40 -08:00
Ben Siraphob a6ac3eedbd treewide: xdg_utils -> xdg-utils 2021-02-01 15:05:09 +07:00
Jan Tojnar e6f926d910 Merge branch 'master' into staging-next 2021-01-17 05:52:23 +01:00
Bernardo Meurer aa4a14b7ad Merge pull request #106617 from S-NA/wip/firefox-improvements
firefox: fix running wayland firefox built with LTO and some miscellaneous improvements
2021-01-16 23:17:57 +00:00
Jan Tojnar c0d2951fa6 Merge branch 'master' into staging-next 2021-01-15 17:46:46 +01:00
Ben Siraphob 108bdac3d9 pkgs/applications: stdenv.lib -> lib 2021-01-15 14:24:03 +07:00
S. Nordin Abouzahra a277fca1c4 firefox: remove patchelf usage
Firefox has a number of optional dependencies that get dlopened.
Instead of using patchelf to set the RPATH use LD_LIBRARY_PATH.
The motivation for this is we already set LD_LIBRARY_PATH in the
wrapper on Linux.
2021-01-13 08:06:46 -05:00
Frederik Rietdijk b209617ff0 plasma5Packages: alias to the libsForQt5 used to build the plasma5 desktop
For in NixOS it is beneficial if both plasma5 and pam use the same Qt5
version. Because the plasma5 desktop may use a different version as the
default Qt5 version, we introduce plasma5Packages.
2021-01-10 15:59:45 +01:00
Luis Hebendanz 1c8c134972 firefox: wrapper updating an addon perserves addon settings 2020-12-15 22:02:34 +01:00
Martin Weinelt 6a163d2dea Merge pull request #105894 from ryneeverett/firefox-xdg
firefox: Prefix $PATH with xdg_utils
2020-12-11 22:17:39 +01:00
ryneeverett 36436ee8ac firefox: Prefix $PATH with xdg_utils
This is required for certain URIs that require launching external
programs (e.g. mailto:, magnet:, or irc:) or setting the default browser
via xdg-settings.

Resolve #92751.

Comparable to #96922.
2020-12-07 15:43:53 +00:00
Luis Hebendanz d3a6a124cf firefox: fix wrapper removing existing addons by default 2020-12-04 17:53:14 +01:00
Jörg Thalheim 9712bbdf74 firefoxaddon: formatting nitpicks 2020-12-02 09:53:53 +01:00
Luis HebendanzandJörg Thalheim cc421679e2 Update pkgs/applications/networking/browsers/firefox/wrapper.nix
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-12-02 09:40:54 +01:00
Luis Hebendanz 397597f731 Added fetchfirefoxaddon 2020-12-02 09:40:53 +01:00
Luis Hebendanz eedee46f2f Adding nix firefox extension support 2020-12-02 09:40:52 +01:00
Doron Behar c8a7e4da0a firefox/wrapper: Use plasma-browser-integration correctly
Don't rely on the attribute from the aliases.nix, as ofborg checks that
in PRs.
2020-10-30 20:37:58 +02:00
S. Nordin Abouzahra 57ea265674 firefox: place alsaLib in lib search patch
libcubeb has dlopened libraries for awhile now. In nixpkgs there was
support for the PulseAudio backend doing this, however the ALSA backend
support was missed and caused issue #79310 (no sound with ALSA). This
gives ALSA users the ability to hear sound once again.
2020-10-29 22:21:12 -04:00
Charlotte Van Petegem 49dba9c90b firefox: support for PKCS#11 modules in wrapper 2020-07-25 16:57:46 +02:00
Florian Klink 1b78e0eeec Merge pull request #73365 from colemickens/nixpkgs-firefox-libglvnd
firefox-wrapper: rename gdkWayland->forceWayland; always use libglvnd
2020-07-11 13:49:39 +02:00
Cole Mickens 8437596beb firefox{,-bin}: add 'mesa', for wayland/drm 2020-07-09 19:56:36 -07:00
Cole Mickens 68c68ff3c3 firefox: wrapper: include libglvnd by default (WR) 2020-07-07 03:33:49 -07:00
Cole Mickens 8734a5e362 firefox: wrapper: gdkWayland->forceWayland 2020-07-07 03:33:44 -07:00
zowoq c7e61112df treewide: remove deprecated value Application from makeDesktopItem 2020-06-25 12:18:37 +10:00
zowoq 78e324d272 treewide: ffmpeg_4 -> ffmpeg 2020-06-16 18:23:14 -07:00
Cole Mickens 552d729571 firefox: wrapper: use ffmpeg_4 for vaapi
without this, adding libva is insufficient to get VA-API working in
Firefox.
2020-04-27 05:05:14 -07:00
Cole Mickens 730d542ae0 firefox: wrapper: add libva to libs 2020-04-27 03:48:33 -07:00
worldofpeace 443e544721 firefox-wrapper: don't throw on enableGnomeExtensions
We use the config for the native messaging host below this statement.
2020-04-18 20:36:55 -04:00
Dominik Xaver Hörl c51b0afd54 firefox-wrapper: remove dead npapi plugin code 2020-04-16 10:12:09 +02:00
Domen Kožar 5f711b6b7e Merge pull request #57876 from dtzWill/feature/fx_cast
fx_cast: init at 0.0.5
2020-02-20 15:18:03 +07:00
arcnmx c7a58a7ba7 firefox: resolve relative nativeMessagingHosts links 2020-02-05 14:29:52 -08:00
John Ericson d34d84a61d firefox-wrapper: Get rid of name argument
Only pname + version is supported now. (Both are still optional,
however.)
2019-11-24 17:27:45 +00:00
John Ericson 9b090ccbca treewide: Get rid of most parseDrvName without breaking compat
That is because this commit should be merged to both master and
release-19.09.
2019-11-24 17:22:28 +00:00
Will Dietz c4e9dd4e57 firefox: add option to use fx_cast_bridge 2019-11-16 01:37:14 -06:00
Andreas Rammhold 87e261843c firefox/wrapper: Set new style override for legacy profiles & allow downgrades
While Firefox 68 started messing with our profiles and required new
profiles on binary location changes Firefox 69 now verifies that we
aren't downgrading to an older Firefox even of the same version. If you
switch between two channel versions and/or between nixpkgs releases
Firefox will refuse to start and demand a fresh profile. Disabling the
downgrade protection works around that issue.
2019-09-04 02:14:53 +02:00
worldofpeace 0552f4dc73 Merge pull request #67214 from stefano-m/master
adoptopenjdk-icedtea-web: rename from icedtea_web
2019-08-23 16:43:52 -04:00
Stefano Mazzucco a6d234e9e9 adoptopenjdk-icedtea-web: rename from icedtea_web
This is a follow up of https://github.com/NixOS/nixpkgs/pull/66422

- rename icedtea_web to adoptopenjdk-icedtea-web to reflect the new governance
- add icedtea_web and icedtea8_web to aliases.nix for backwards compatibility
- update the attribute name where icedtea_web is used
2019-08-23 21:12:59 +01:00
Robin Gloster 86e1839847 esteidfirefoxplugin: remove
id.ee has removed it and doesn't build with openssl 1.1, there seems to
be a new plugin available
2019-08-21 00:05:18 +02:00
Robert Helgesson 06d8666a60 firefox: allow overriding config of wrapped package
By moving the `cfg` variable into the wrapper arguments we are able to
override it for an already wrapped package. For example, with this
change one can have

    pkgs.firefox-devedition-bin.override {
      cfg.enableBrowserpass = true;
    }

which would otherwise be difficult to accomplish for packages having a
complicated wrapped definition in `all-packages.nix`.
2019-07-09 00:56:24 +02:00
talyz ae2778c9e3 firefox-wayland: Add missing dependency libglvnd (libEGL)
Firefox running in wayland mode is unable to find and load
libEGL.so (and says so on stdout). This puts it in "basic"
mode (unaccelerated graphics) and disables WebGL. Fix this by adding
libglvnd to the LD_LIBRARY_PATH.
2019-06-05 14:49:55 +02:00
Timo Kaufmann 53b08beea6 tridactyl-native: init at 1.14.9 (#61703) 2019-05-28 13:14:06 +02:00