From 53661b05d3e74403126dd2a47ff857756da04600 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Sun, 2 Nov 2014 17:28:56 +0100 Subject: [PATCH] Set App ID on the VLC instance. One of the benefits of this is that we are shown in all pulseaudio tools with the correct branding (name and icon) instead of VLC's. --- src/libtomahawk/audio/AudioOutput.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libtomahawk/audio/AudioOutput.cpp b/src/libtomahawk/audio/AudioOutput.cpp index 24751b7cb..9a17a1ab0 100644 --- a/src/libtomahawk/audio/AudioOutput.cpp +++ b/src/libtomahawk/audio/AudioOutput.cpp @@ -21,6 +21,7 @@ #include "AudioEngine.h" #include "AudioOutput.h" +#include "TomahawkVersion.h" #include "utils/Logger.h" @@ -90,6 +91,12 @@ AudioOutput::AudioOutput( QObject* parent ) if ( !m_vlcInstance ) { tDebug() << "libVLC: could not initialize"; } + libvlc_set_user_agent( m_vlcInstance, TOMAHAWK_APPLICATION_NAME, + TOMAHAWK_APPLICATION_NAME "/" TOMAHAWK_VERSION ); + // FIXME: icon is named tomahawk, so we need the lowercase application name + libvlc_set_app_id( m_vlcInstance, "org.tomahawk-player.desktop", + TOMAHAWK_VERSION, "tomahawk" ); + m_vlcPlayer = libvlc_media_player_new( m_vlcInstance );