mojira.dev
MC-249585

Minecraft identifies as "java" to pulseaudio on Linux

Minecraft fails to identify itself as anything but "java" to pulseaudio on Linux. This results in volume sliders for Minecraft's audio output (in tools like pavucontrol and similar) being labeled as "java" and prevents pulseaudio from distinguishing Minecraft from any other java applications that share the same flaw.
Fixing this would allow pulseaudio to properly remember per-application settings for Minecraft.

The relevant properties being

media.name = "Playback Stream"
        application.name = "java"

Which can be queried using

pactl list sink-inputs

application.name should simply be "Minecraft", without any version numbers, so that pulseaudio can apply per-application settings properly across all future versions.

media.name can be anything, but it too shows up in the volume sliders and could be more descriptive than just "Playback Stream". Something like the Minecraft version and the name of the player showing up in here would be nice (e.g. "1.19 - Steve")

 

 

Comments 2

Can confirm.
Using pipewire and pipewire-pulse

Can confirm on Minecraft 1.19 (any minor versions), 1.20 and 1.20.1

It's a simple thing but it would really help to understand which application is the one piercing my eardrum between two java apps that have this bug.

pipewire, pipewire-pulse and pipewire-jack. The error is visible with OpenAL using Pulseaudio or Jack to connect to pipewire.

0x5e3371ebe11e

(Unassigned)

Community Consensus

Platform

Low

Sound

1.18.2, 22w12a

Retrieved