How to run FIREFOX without pulseaudio, by using "apulse"

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

How to run FIREFOX without pulseaudio, by using "apulse"

Post by Flemur »

I really hate pulseaudio, and firefox > v50 or v52 "requires" it.

There are two work-arounds:
- compile firefox with certain options which might not work later ... this is a major PITA.

Or:
- install "apulse"

EDIT:
@TeaSwigger » Mon Aug 20, 2018 4:43 pm
@Flemur , you might add in your initial post that apulse is available in the repos for Mint 19 / ubuntu 18.x
So for Mint 19.x, just install 'apulse' like a regular package from the repos. Otherwise, do the below...
/EDIT

https://github.com/i-rinat/apulse
1 - download the zip file, extract it into "apulse-master"
2 - cd apulse-master
3 - NOTE: the first step below (from the website) is WRONG. It won't work!

Code: Select all

mkdir build && cd build (NO! DON'T DO THIS STEP!)
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release 
make
sudo make install
I needed to install :
cmake
libglib2.0-dev, which the makefile calls "glib2.0"
libasound2-dev, which the makefile calls "alsa"

In firefox:

Code: Select all

about:config -> security.sandbox.content.write_path_whitelist = /dev/snd/
(with trailing "/"; comma separated if there were already values).

Uninstall or disable pulseaudio, and reboot.

Run firefox like this:

Code: Select all

apulse firefox
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
TeaSwigger
Level 3
Level 3
Posts: 132
Joined: Mon Feb 06, 2012 6:42 am
Location: CA

Re: How to run FIREFOX without pulseaudio, by using "apulse"

Post by TeaSwigger »

Thank you, Flemur, for sharing this find.

Following your directions for installing apulse was a success on my test system (18.3 Mint xfce).
“You can make a strong business case for equality but not everyone wants to hear it.” - Prof. Kate Pickett

Mint 20.2 xfce w/nemo - AMD A10 7700K APU - spdif to Bifrost DAC - Dell U2415
some favs: Zim, deadbeef, kid3, gimp, artha, deluge, handbrake, mc
mrkapqa
Level 1
Level 1
Posts: 7
Joined: Sat Nov 30, 2013 2:43 pm

Re: How to run FIREFOX without pulseaudio, by using "apulse"

Post by mrkapqa »

Is there a way to easily undo these steps, eg. uninstalling Apulse after having it installed?


Thank you!
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How to run FIREFOX without pulseaudio, by using "apulse"

Post by Flemur »

mrkapqa wrote: Sat Jul 07, 2018 5:17 am Is there a way to easily undo these steps, eg. uninstalling Apulse after having it installed?
The README.md file suggests making a ".deb" file (or some such), but this is easier:

I just re-ran the "make install", it said:

Code: Select all

Install the project...
-- Install configuration: "Release"
-- Installing: /usr/bin/apulse
-- Installing: /usr/lib/apulse/libpulse-simple.so.0
-- Up-to-date: /usr/lib/apulse/libpulse-simple.so
-- Installing: /usr/lib/apulse/libpulse.so.0
-- Up-to-date: /usr/lib/apulse/libpulse.so
-- Installing: /usr/lib/apulse/libpulse-mainloop-glib.so.0
-- Up-to-date: /usr/lib/apulse/libpulse-mainloop-glib.so
-- Installing: /usr/share/man/man1/apulse.1
$
So just:

Code: Select all

sudo rm -r /usr/bin/apulse 
sudo rm -r /usr/lib/apulse
sudo rm -r /usr/share/man/man1/apulse.1
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
TeaSwigger
Level 3
Level 3
Posts: 132
Joined: Mon Feb 06, 2012 6:42 am
Location: CA

Re: How to run FIREFOX without pulseaudio, by using "apulse"

Post by TeaSwigger »

@Flemur , you might add in your initial post that apulse is available in the repos for Mint 19 / ubuntu 18.x
“You can make a strong business case for equality but not everyone wants to hear it.” - Prof. Kate Pickett

Mint 20.2 xfce w/nemo - AMD A10 7700K APU - spdif to Bifrost DAC - Dell U2415
some favs: Zim, deadbeef, kid3, gimp, artha, deluge, handbrake, mc
Locked

Return to “Sound”