source: xsoft/graphweb/firefox.xml@ f3d9ce9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since f3d9ce9 was f3d9ce9, checked in by Ken Moffat <ken@…>, 4 years ago

firefox-68.9.0 and also for JS68.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23226 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 23.7 KB
RevLine 
[f939f05]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[f939f05]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[2eae5bc]7 <!ENTITY firefox-download-http "&mozilla-http;/firefox/releases/&firefox-version;esr/source/firefox-&firefox-version;esr.source.tar.xz">
[8dfc5c3]8 <!ENTITY firefox-download-ftp " ">
[02a6eb8]9 <!-- FIXME the version, md5sum and size should be shared with js68 -->
[f3d9ce9]10 <!ENTITY firefox-md5sum "a1156aed941b28a06115a9450a46563d">
11 <!ENTITY firefox-size "303 MB">
[5c2b024]12 <!-- NB with stylo, much of the build uses rust, and therefore cargo files.
[9da4cc6f]13 But the extra cached cargo files, if any, seem to be minimal -->
[f3d9ce9]14 <!ENTITY firefox-buildsize "4.3 GB (167 MB installed) without tests">
[9a469bc]15 <!-- editors: with ff63 and rust-1.29, ./mach build -j4 is probably the
[fe5f563d]16 most practical way to get a timing on a machine with more cores, if taking
17 cores offline is not practical. If in doubt, round up -->
[a8a7b8bb]18 <!ENTITY firefox-time "22 SBU (on a 4-core machine) without tests">
[f939f05]19]>
20
[ffe47ca2]21<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
[b81991e1]22 <?dbhtml filename="firefox.html" ?>
23
24 <sect1info>
25 <othername>$LastChangedBy$</othername>
26 <date>$Date$</date>
27 </sect1info>
28
29 <title>Firefox-&firefox-version;</title>
30
31 <indexterm zone="firefox">
32 <primary sortas="a-Firefox">Firefox</primary>
33 </indexterm>
34
35 <sect2 role="package">
36 <title>Introduction to Firefox</title>
37
[c1ae13c]38 <para>
39 <application>Firefox</application> is a stand-alone browser based on the
40 <application>Mozilla</application> codebase.
41 </para>
[b81991e1]42
[73d98d49]43 &lfs91_checked;
[76ae9a2]44
[b81991e1]45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
[c1ae13c]48 <para>
49 Download (HTTP): <ulink url="&firefox-download-http;"/>
50 </para>
[b81991e1]51 </listitem>
52 <listitem>
[c1ae13c]53 <para>
54 Download (FTP): <ulink url="&firefox-download-ftp;"/>
55 </para>
[b81991e1]56 </listitem>
57 <listitem>
[c1ae13c]58 <para>
59 Download MD5 sum: &firefox-md5sum;
60 </para>
[b81991e1]61 </listitem>
62 <listitem>
[c1ae13c]63 <para>
64 Download size: &firefox-size;
65 </para>
[b81991e1]66 </listitem>
67 <listitem>
[c1ae13c]68 <para>
69 Estimated disk space required: &firefox-buildsize;
70 </para>
[b81991e1]71 </listitem>
72 <listitem>
[c1ae13c]73 <para>
74 Estimated build time: &firefox-time;
75 </para>
[b81991e1]76 </listitem>
77 </itemizedlist>
78
[14de4227]79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
80 <itemizedlist spacing="compact">
81 <listitem>
82 <para>
83 Optional patch to allow system versions of <xref linkend="graphite2"/>
[ecffcbbc]84 and <xref linkend="harfbuzz"/>:
[2bfd23a]85 <ulink url="&patch-root;/firefox-&firefox-version;esr-system_graphite2_harfbuzz-1.patch"/>
[14de4227]86 </para>
87 </listitem>
88 </itemizedlist>
89
[f06c692]90 <note>
[2eae5bc]91 <para>
92 The directory name is firefox-&firefox-version;
93 </para>
94
[f06c692]95 <para>
[8d0bc761]96 Extracting the tarball
97 will reset the permissions of the current directory to 0755 if you
[765c2a7]98 have permission to do that. If you do this in a directory where
[37bf7b1]99 the sticky bit is set, such
[dc9a18a]100 as <filename class="directory">/tmp</filename> it will end with error
101 messages:
102 </para>
103
104<literallayout>tar: .: Cannot utime: Operation not permitted
105tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
106tar: Exiting with failure status due to previous errors
107</literallayout>
108
109 <para>
110 This does finish with non-zero status, but it does
111 <emphasis>NOT</emphasis> mean there is a real problem.
112 Do not untar as the <systemitem class="username">root</systemitem> user
113 in a directory where the sticky bit is set - that will unset it.
[f06c692]114 </para>
[8d0bc761]115
116 <para>
[406e5ffe]117 As with other large packages which use C++ (or rust), the SBU times
[fe5f563d]118 to build this vary more widely than you might expect. Also, 6GB
[406e5ffe]119 of real memory is used during the final link and the SBUs can increase
[fe5f563d]120 significantly if the machine has to swap.
[8d0bc761]121 </para>
122
[e628b536]123 <para>
124 The mach build system (Python scripts) can be somewhat unreliable: if
125 the build fails and reports an Error, it can still return a status of
126 success, causing a scripted build to try to install (which does not rerun
127 the build), fail during the preparations for installing, but still exit
128 with a status of success. Also, on occasion it may limit itself to only
129 running one set of jobs - that will make the build take about 3 times as
130 long as running with four sets of jobs.
131 </para>
132
[8d0bc761]133 <para>
134 Although upstream prefer to use <application>PulseAudio</application>,
135 for the moment <application>Alsa</application> can still be used. Both
136 may need runtime configuration to get sound working.
137 </para>
[f06c692]138 </note>
139
[b81991e1]140 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
141
142 <bridgehead renderas="sect4">Required</bridgehead>
[c1ae13c]143 <para role="required">
[14de4227]144 <xref linkend="autoconf213"/>,
[44cd41e]145 <xref linkend="cbindgen"/>,
[703f0ce]146 <!-- with ff-69.0 the configure system was happy to continue to disable
147 dbus-glib, but linking libxul.so failed because rust code uses it, so
148 make it required and remove from mozconfig : ken -->
149 <xref linkend="dbus-glib"/>,
[ac105103]150 both <xref linkend="gtk3"/> and
[9da4cc6f]151 <xref linkend="gtk2"/>,
[326f830]152 <xref linkend="libnotify"/>,
[fe5f563d]153 <xref linkend="nodejs"/>,
[59a6b63]154 <xref linkend="nss"/>,
[be0bd12]155 <xref linkend="pulseaudio"/>
[81b3e7fd]156 (or
[9da4cc6f]157 <xref linkend="alsa-lib"/> if you edit the mozconfig;
[326f830]158 now deprecated by mozilla), in either case please read the
159 Configuration Information,
[4c6edac]160 <xref linkend="rust"/>,
[59a6b63]161 <xref linkend="unzip"/>,
[479e03a]162 <xref linkend="yasm"/>, and
163 <xref linkend="zip"/>
[c1ae13c]164 </para>
165
[1555d3d]166 <bridgehead renderas="sect4">Recommended</bridgehead>
[c1ae13c]167 <para role="recommended">
[b84fe71]168 <xref linkend="icu"/>,
[0e37869]169 <xref linkend="libevent"/>,
[e48053bd]170<!-- fails to build in 65.0 (headers changed)
171 <xref linkend="libvpx"/>, -->
[e399c12]172 <xref linkend="libwebp"/>,
173 <xref linkend="nasm"/>, and
[a30a874]174 <xref linkend="sqlite"/>
[c1ae13c]175 </para>
[1555d3d]176
[0e37869]177 <note>
178 <para>
[b9f61df]179 If you don't install recommended dependencies, then internal copies of
180 those packages will be used. They might be tested to work, but they can
181 be out of date or contain security holes.
[0e37869]182 </para>
183 </note>
[8d0bc761]184
[b81991e1]185 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]186 <para role="optional">
[6c64623f]187 <xref linkend="curl"/>,
[c1ae13c]188 <xref linkend="doxygen"/>,
[babf0a0]189 <xref role="runtime" linkend="ffmpeg"/> (runtime, to play mov, mp3 or mp4 files),
[fe30eab]190 <!-- <phrase revision="sysv"><ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink></phrase> -->
191 <xref linkend="liboauth"/>,
[26fa7d2]192 <xref linkend="openjdk"/>,
[0e37869]193 <xref linkend="startup-notification"/>,
[566fcae]194 <xref linkend="valgrind"/>,
[6000a3e]195 <xref linkend="wget"/>,
[73b06df]196 <xref linkend="wireless_tools"/>,
[14de4227]197 <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>,
198 and (with the patch)
199 <xref linkend="graphite2"/> and
200 <xref linkend="harfbuzz"/>
[c1ae13c]201 </para>
202
203 <para condition="html" role="usernotes">
204 User Notes: <ulink url="&blfs-wiki;/firefox"/>
205 </para>
[b81991e1]206 </sect2>
207
208 <sect2 role="installation">
209 <title>Installation of Firefox</title>
210
[f72a04a]211 <para>
[b9f61df]212 The configuration of <application>Firefox</application> is accomplished
213 by creating a <filename>mozconfig</filename> file containing the desired
214 configuration options. A default <filename>mozconfig</filename> is
215 created below. To see the entire list of available configuration options
[888e303]216 (and an abbreviated description of some of them), issue <command>./mach
217 configure &amp;&amp; ./configure --help | less</command>. You may also
218 wish to review the entire file and uncomment any other desired options.
219 Create the file by issuing the following command:
[c1ae13c]220 </para>
[5a13c45]221
[0e37869]222<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[dcb0fe6]223<literal># If you have a multicore machine, all cores will be used by default.
224
[703f0ce]225# If you have installed (or will install) wireless-tools, and you wish
226# to use geolocation web services, comment out this line
[6d1bf0e]227ac_add_options --disable-necko-wifi
228
[ad5a97d]229# API Keys for geolocation APIs - necko-wifi (above) is required for MLS
230# Uncomment the following line if you wish to use Mozilla Location Service
231#ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key
232
233# Uncomment the following line if you wish to use Google's geolocaton API
234# (needed for use with saved maps with Google Maps)
[9116137c]235#ac_add_options --with-google-location-service-api-keyfile=$PWD/google-key
[ad5a97d]236
[ab8cd9be]237# Uncomment this line if you have installed startup-notification:
[0e37869]238#ac_add_options --enable-startup-notification
[495ebe07]239
[81b3e7fd]240# Uncomment the following option if you have not installed PulseAudio
241#ac_add_options --disable-pulseaudio
[3507f80]242# or uncomment this if you installed alsa-lib instead of PulseAudio
[81b3e7fd]243#ac_add_options --enable-alsa
[89cdb63d]244
[0e37869]245# Comment out following options if you have not installed
246# recommended dependencies:
247ac_add_options --enable-system-sqlite
248ac_add_options --with-system-libevent
[8df543f]249# firefox-65 understands webp and ships with an included copy
250ac_add_options --with-system-webp
[0e37869]251ac_add_options --with-system-nspr
252ac_add_options --with-system-nss
[b84fe71]253ac_add_options --with-system-icu
[9a469bc]254
[e399c12]255# Do not specify the gold linker which is not the default. It will take
256# longer and use more disk space when debug symbols are disabled.
[9a469bc]257
[e399c12]258# libdavid (av1 decoder) requires nasm. Uncomment this if nasm
259# has not been installed.
260#ac_add_options --disable-av1
[0a561d8]261
[9a469bc]262# You cannot distribute the binary if you do this
263ac_add_options --enable-official-branding
[0e37869]264
[14de4227]265# If you are going to apply the patch for system graphite
266# and system harfbuzz, uncomment these lines:
267#ac_add_options --with-system-graphite2
268#ac_add_options --with-system-harfbuzz
269
270# Stripping is now enabled by default.
271# Uncomment these lines if you need to run a debugger:
272#ac_add_options --disable-strip
273#ac_add_options --disable-install-strip
274
[e399c12]275# Disabling debug symbols makes the build much smaller and a little
[ec54fa5b]276# faster. Comment this if you need to run a debugger. Note: This is
277# required for compilation on i686.
[e399c12]278ac_add_options --disable-debug-symbols
279
[7251b1d]280# The BLFS editors recommend not changing anything below this line:
[495ebe07]281ac_add_options --prefix=/usr
[0e37869]282ac_add_options --enable-application=browser
[495ebe07]283
[c9677a35]284# The elf-hack is reported to cause failed installs (after successful builds)
285# on some machines. It is supposed to improve startup time and it shrinks
286# libxul.so by a few MB - comment this if you know your machine is not affected.
287ac_add_options --disable-elf-hack
288
[5f5dcc2]289ac_add_options --disable-crashreporter
290ac_add_options --disable-updater
[57a8df2]291# enabling the tests will use a lot more space and significantly
292# increase the build time, for no obvious benefit.
[0e37869]293ac_add_options --disable-tests
294
[e399c12]295# The default level of optimization again produces a working build with gcc.
[8df543f]296ac_add_options --enable-optimize
[0e37869]297
[9da4cc6f]298# From firefox-61 system cairo is not supported
299
[41f2e90]300ac_add_options --enable-system-ffi
[0e37869]301ac_add_options --enable-system-pixman
302
[e628b536]303# From firefox-62 --with-pthreads is not recognized
[0e37869]304
305ac_add_options --with-system-bz2
[a0ace670]306ac_add_options --with-system-jpeg
307ac_add_options --with-system-png
308ac_add_options --with-system-zlib
[aed37975]309
[1b0a207]310# The following option unsets Telemetry Reporting. With the Addons Fiasco,
311# Mozilla was found to be collecting user's data, including saved passwords and
312# web form data, without users consent. Mozilla was also found shipping updates
313# to systems without the user's knowledge or permission.
314# As a result of this, use the following command to permanently disable
315# telemetry reporting in Firefox.
316unset MOZ_TELEMETRY_REPORTING
317
[4def8b6]318mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]319EOF</userinput></screen>
[b9b7146]320
[c1ae13c]321 <para>
322 Compile <application>Firefox</application> by issuing the following
323 commands:
324 </para>
[9572e88]325
[14de4227]326 <para>
327 If you have installed system versions of graphite2 and harfbuzz and wish
328 firefox to use those instead of its shipped versions, apply the patch and
329 uncomment the appropriate entries in the <filename>mozconfig</filename>
[346e269]330 file.
[14de4227]331 </para>
332
[2bfd23a]333<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-system_graphite2_harfbuzz-1.patch</userinput></screen>
[14de4227]334
[ad5a97d]335 <para>
336 If the geolocation APIs are needed:
337 </para>
338
[e5c8de01]339 <note>
340 <para>
341 <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
342 The Google and Mozilla API Keys below are specific to LFS. If using
343 these instructions for another distro, or if you intend to distribute
344 binary copies of the software using these instructions, please obtain
345 your own keys following the instructions located at
346 <ulink url="http://www.chromium.org/developers/how-tos/api-keys"/> and
347 <ulink url="https://location.services.mozilla.com/api"/> respectively.
348 <!-- BLFS Devs, register an account at Google with your
349 @linuxfromscratch.org email address, and I'll make you an administrator
350 for the 'Google APIs for LFS' project (where the API and OAuth keys
351 were created for use in the book).-->
352 </para>
353 </note>
354
[ad5a97d]355<screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
[5f18b7a8]356echo "613364a7-9418-4c86-bcee-57e32fd70c23" > mozilla-key</userinput></screen>
[ad5a97d]357
[5b0a978e]358 <note>
359
360 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
361 href="../../xincludes/mozshm.xml"/>
362
363 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
364 href="../../xincludes/mozmach.xml"/>
365
366 </note>
[57feeb5]367 <!--
[ec54fa5b]368 <para>
369 If you are building on i686, apply a fix to prevent Internal Compiler
370 Errors in GCC-7+:
[e399c12]371 </para>
372
[ec54fa5b]373<screen><userinput remap="pre">case $(uname -m) in
374 i?86) sed -i "562 s/mips64/i386/" gfx/skia/skia/third_party/skcms/src/Transform_inl.h ;;
375esac</userinput></screen>
[57feeb5]376 -->
[29b0395]377
378 <para>
379 Now invoke the Python2 script to compile the package.
380 </para>
[e8d45427]381
[29b0395]382<screen><userinput>export CC=gcc CXX=g++ &amp;&amp;
[ec1d8ae]383export MOZBUILD_STATE_PATH=${PWD}/mozbuild &amp;&amp;
[f0b7ae67]384./mach build</userinput></screen>
[3bdfc9fd]385
[0e37869]386 <para>
[57a8df2]387 The <filename>mozconfig</filename> above disables the tests because
388 they use a lot more time and disk space for no obvious benefit. If
[ecffcbbc]389 you have nevertheless enabled them, you can run the tests by executing
390 <command>./mach gtest</command>. This will require a network connection,
391 and to be run from within an Xorg session - there is a popup dialog
392 when it fails to connect to ALSA (that does not create a failed test).
393 One or two tests will fail. To see the details of the failure(s) you
394 will need to log the output from that command so that you can review it.
[0e37869]395 </para>
[01ce75f8]396
[495ebe07]397 <para>
[b9f61df]398 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]399 </para>
[5a13c45]400
[326f830]401<screen role="root"><userinput>./mach install &amp;&amp;
[5ee1266]402
[326f830]403mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
[8d0bc761]404ln -sfv ../../mozilla/plugins /usr/lib/firefox/browser/</userinput></screen>
[fe5f563d]405
[a5708ba]406 <para>
407 Set environment variables back to their values:
408 </para>
409
[e399c12]410<screen><userinput>unset CC CXX MOZBUILD_STATE_PATH</userinput></screen>
[01ce75f8]411
[b81991e1]412 </sect2>
413
[361df3e]414 <sect2 role="commands">
415 <title>Command Explanations</title>
[7d09fcb9]416
[29b0395]417<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
418 href="../../xincludes/SIOCGSTAMP.xml"/>-->
[e8d45427]419
[b84fe71]420 <para>
421 <command>sed -e 's/checkImpl/checkFFImpl/g' ...</command>: Although the
[e399c12]422 package ships with a modified version of <application>ICU-63</application>
423 and only tests that the system version, if used, is at least 63, changes
424 from upstream 63 cause builds with the system version to fail with an error
425 message <literal>no void JSContext::checkImpl_63 member function</literal>.
426 The sed renames the local function. Upstream ICU-64 works around this.
[b84fe71]427 </para>
428
[9a469bc]429 <para>
[e399c12]430 <command>export CC=gcc CXX=g++ ...</command>: Upstream now prefer
431 <application>clang</application>, but gcc is a more secure compiler and
432 now produces reasonably-sized builds.
[9a469bc]433 </para>
434
[fe5f563d]435 <para>
436 <command>export MOZBUILD_STATE_PATH=${PWD}/mozbuild</command>: The build
437 is now supposed to tell you that it intends to create <filename
438 class="directory">~/.mozbuild</filename>, and offer you an option to
439 press &lt;ENTER&gt; to accept this, or Ctrl-C to cancel and restart the
440 build after specifying the directory. In practice, the message may not
441 appear until after &lt;ENTER&gt; is keyed, i.e. the build stalls.
442 </para>
443
444 <para>
445 That directory is used for a (probably random) telemetry identifier.
446 Creating this in the build directory, and deleting that after the
447 installation, prevents it being used. If you wish to participate in
448 telemetry, export MOZBUILD_STATE_PATH to point to its default directory.
449 </para>
450
[a0d558d]451 <para>
[326f830]452 <command>./mach build</command>: <application>Firefox</application>
453 now uses this <application>python2</application> script to run the
454 build and install.
[a0d558d]455 </para>
456
[c1ae13c]457 <para>
[326f830]458 <option>./mach build --verbose</option>: Use this alternative if you
459 need details of which files are being compiled, together with any C or
460 C++ flags being used.
[c1ae13c]461 </para>
462
[9a469bc]463 <para>
[fe5f563d]464 <option>./mach build -jN</option>: The build should, by default, use
465 all the online CPU cores. There are two reasons to specify the number
466 of cores, e.g. -j4 for 4 cores: First, if using all the cores causes
467 the build to swap because you have insufficient memory (e.g. for 4 cores
[e399c12]468 a build without system graphite2 and harfbuzz now uses towards 8GB
[fe5f563d]469 of RAM). In such cases, using fewer cores can be faster. Second, on some
470 machines the middle part of the build can drag on as if only one core is
471 present. In those cases, specifying the number of cores may speed up the
472 build.
[9a469bc]473 </para>
474
[c1ae13c]475 <para>
[8d0bc761]476 <command>mkdir -pv /usr/lib/mozilla/plugins</command>: This ensures
477 that <filename class="directory">/usr/lib/mozilla/plugins/</filename>
[c1ae13c]478 exists.
479 </para>
480
481 <para>
[8d0bc761]482 <command>ln -sv ... /usr/lib/firefox/browser</command>:
[24da103]483 This command creates a symbolic link to <filename
484 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
485 needed, as <application>Firefox</application> checks <filename
486 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
487 symbolic link is made to keep all the plugins installed in one folder.
[c1ae13c]488 </para>
[fa1bc3e]489
[e399c12]490 <para>
491 <option>export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib</option>:
492 Use this as an alternative to building with gcc and g++ if you wish to use
493 the clang toolchain. Remember to unset these variables after the build.
494 </para>
495
[b81991e1]496 </sect2>
497
[88cec02]498 <sect2 role="configuration">
499 <title>Configuring Firefox</title>
500
[c1ae13c]501 <para>
502 If you use a desktop environment like <application>Gnome</application> or
503 <application>KDE</application> you may like to create a
504 <filename>firefox.desktop</filename> file so that
505 <application>Firefox</application> appears in the panel's menus. If you
506 didn't enable startup-notification in your mozconfig change the
507 StartupNotify line to false. As the
508 <systemitem class="username">root</systemitem> user:
509 </para>
[31de6e7]510
[eb5f847a]511<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[0e37869]512mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]513
[c099902d]514cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
[fcd66369]515<literal>[Desktop Entry]
[31de6e7]516Encoding=UTF-8
[0e37869]517Name=Firefox Web Browser
518Comment=Browse the World Wide Web
519GenericName=Web Browser
520Exec=firefox %u
521Terminal=false
[31de6e7]522Type=Application
523Icon=firefox
[0e37869]524Categories=GNOME;GTK;Network;WebBrowser;
525MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
[fcd66369]526StartupNotify=true</literal>
[31de6e7]527EOF
[74f73ede]528
[888e303]529ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
[0e37869]530 /usr/share/pixmaps/firefox.png</userinput></screen>
531
[326f830]532 <sect3><title>Configuration Information</title>
533
534 <para>
535 The application settings for firefox are accessible by keying
536 <command>about:config</command> in the address bar.
537 </para>
538
539 <para>
540 With this version of <application>firefox</application>, getting
541 working sound can be a problem. Although upstream prefers pulseaudio,
542 on balance using <application>Alsa</application> may be easier.
543 </para>
544
545 <para>
546 If you enabled <application>Alsa</application> for sound, you may need
547 to alter one variable to get working sound. If you run
548 <command>firefox</command> from a term and try to play something with
549 sound you might encounter error messages like:
550 </para>
551
552 <para>
553 <literal>Sandbox: seccomp sandbox violation: pid 3941, tid 4030,
554 syscall 16, args 48 2147767296 139909894784796 0 0 0.</literal>
555 </para>
556
557 <para>
558 That was on x86_64, on i686 the syscall number is 54. To allow this
559 syscall, in <command>about:config</command> change
560 <command>security.sandbox.content.syscall_whitelist</command> to 16
561 (or 54 if using i686).
562 </para>
563
564 <para>
565 If you use <command>pulseaudio</command> in a Desktop Environment, it
566 might already be started by that DE. But if it is not, although
[7ebe22e]567 firefox-57 managed to start it, firefox-58 did not. If you run
568 <command>firefox</command> from a term and this problem is present,
569 trying to play sound will
[326f830]570 encounter error messages warning <literal>Can't get cubeb
571 context!</literal>
572 </para>
573
574 <para>
575 The fix for this is to close firefox, start pulseaudio to check it
576 does start (if not, read the information on Configuring in <xref
577 linkend="pulseaudio"/>) and restart firefox to check it is working.
578 If it now works, add the following to your <filename>~/.xinitrc</filename>:
579<phrase revision="sysv">
580<literal>pulseaudio --verbose --log-target=syslog&amp;</literal></phrase>
581<phrase revision="systemd">
582<literal>pulseaudio --verbose --log-target=journald&amp;</literal></phrase>
583 (unfortunately, on some systems this does not work).
584 </para>
585
586 <para>
587 You may wish to use multiple profiles within firefox. To do that, invoke
588 firefox as <command>firefox --ProfileManager</command>. You can also
589 check which profile is currently in use from
590 <command>about:profiles</command>.
591 </para>
592
593 </sect3>
[88cec02]594 </sect2>
595
[b81991e1]596 <sect2 role="content">
597 <title>Contents</title>
598
599 <segmentedlist>
600 <segtitle>Installed Programs</segtitle>
601 <segtitle>Installed Libraries</segtitle>
[c5f005b]602 <segtitle>Installed Directory</segtitle>
[b81991e1]603
604 <seglistitem>
[0e37869]605 <seg>
606 firefox
607 </seg>
[c1ae13c]608 <seg>
609 Numerous libraries, browser components, plugins, extensions, and
[8d0bc761]610 helper modules installed in /usr/lib/firefox
[c1ae13c]611 </seg>
[7498751]612 <seg>
[54814bdd]613 /usr/lib/firefox and /usr/lib/mozilla
[7498751]614 </seg>
[b81991e1]615 </seglistitem>
616 </segmentedlist>
617
618 <variablelist>
619 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
620 <?dbfo list-presentation="list"?>
621 <?dbhtml list-presentation="table"?>
622
623 <varlistentry id="firefox-prog">
624 <term><command>firefox</command></term>
625 <listitem>
[c1ae13c]626 <para>
[7e1afc9]627 is a <application>GTK+-3</application> internet browser that uses
628 the Mozilla Gecko rendering engine.
[c1ae13c]629 </para>
[b81991e1]630 <indexterm zone="firefox firefox-prog">
631 <primary sortas="b-firefox">firefox</primary>
632 </indexterm>
633 </listitem>
634 </varlistentry>
[0e37869]635
[b81991e1]636 </variablelist>
[0e37869]637
[b81991e1]638 </sect2>
[0e37869]639
[4d37129]640</sect1>
Note: See TracBrowser for help on using the repository browser.