diff options
Diffstat (limited to 'src/ServerInfoManager.cc')
-rw-r--r-- | src/ServerInfoManager.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ServerInfoManager.cc b/src/ServerInfoManager.cc index 436912d..0e41cde 100644 --- a/src/ServerInfoManager.cc +++ b/src/ServerInfoManager.cc @@ -790,6 +790,14 @@ void ServerInfoManager::runVolumeMeter(const Glib::ustring &source) { Glib::spawn_command_line_async(t); } +bool ServerInfoManager::volumeMeterSupported() { + gchar *c; + c = g_find_program_in_path(PAVUMETER_PATH); + g_free(c); + + return !!c; +} + void ServerInfoManager::killClient(uint32_t index) { pa_operation_unref(pa_context_kill_client(&context, index, NULL, NULL)); } |