Sample Header Ad - 728x90

Exporting $PULSE_SERVER at start up

2 votes
1 answer
2529 views
In order to run flatpak applications (like Discord or Spotify) I currently have to export the $PUSLE_SERVER in my ~/.zshrc or ~/.bashrc like so: export PULSE_SERVER=unix:/tmp/pulse-PKdhtXMmr18n/native After reading this part of the pulse audio FAQ I believe I can get this working by using ~/.config/pulse/client.conf. I have tried adding either of the following two lines to my ~/.config/pulse/client.conf: default-server = unix:/tmp/pulse-PKdhtXMmr18n/native And: auto-connect-display = yes NOTE: I tried the second because someone on the IRC suggested that flatpak may be looking at something related to X11 for the $PULSE_SERVER. After trying an env | grep PULSE the $PULSE_SERVER does not appear to be being set. Furthermore neither of these approaches seem to have any effect (in saying that the first seemed to interfere with the session start as it stopped my polybar from starting, I have no idea why or how to debug this). The main reason for wanting to define the $PULSE_SERVER elsewhere is I don't want to have to declare it in each shell and I would like to keep all the pulse config in one place. I originally tried adding the above export to my ~/.xprofile (I use SDDM to start my session) however this stopped the pulse folder from being created in /tmp/. Additional Info: I am running void linux with the bspwm window manager.
Asked by Otis Wright (121 rep)
Jan 2, 2019, 08:14 AM
Last activity: May 24, 2025, 07:02 AM