From be0226094137c9cc147c5eb85c6b972bb79a9941 Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Mon, 18 Mar 2024 11:01:26 +0000 Subject: [PATCH] Add AppStream metainfo file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This file is taken from the Flathub package, as of https://github.com/flathub/org.pulseaudio.pavucontrol/pull/31 where I have adjusted the name & summary to conform to Flathub's rules. In particular: - The name must be no more than 20 characters, so I have used “Volume Control” to match the window title and GenericName - The summary must be no more than 35 characters. I noticed while preparing this patch that the Comment in the .desktop file (which the appstream specification says is “roughly equivalent” to the ) is just “Adjust the volume level”. IMO “Adjust the volume level” contains no more information than the name “Volume Control”. Fixes https://gitlab.freedesktop.org/pulseaudio/pavucontrol/-/issues/127 --- po/POTFILES.in | 1 + src/Makefile.am | 6 ++ src/meson.build | 9 +++ ...org.pulseaudio.pavucontrol.metainfo.xml.in | 65 +++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 src/org.pulseaudio.pavucontrol.metainfo.xml.in diff --git a/po/POTFILES.in b/po/POTFILES.in index 931f312..a939fc8 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,3 +1,4 @@ +src/org.pulseaudio.pavucontrol.appdata.xml.in src/pavucontrol.desktop.in src/pavucontrol.glade src/pavucontrol.cc diff --git a/src/Makefile.am b/src/Makefile.am index adec68e..4b39cfe 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,6 +18,7 @@ desktopdir = $(datadir)/applications gladedir = $(pkgdatadir) localedir = $(datadir)/locale +metainfodir = $(datadir)/metainfo bin_PROGRAMS=pavucontrol glade_DATA=pavucontrol.glade @@ -27,6 +28,11 @@ desktop_DATA=$(desktop_in_files:.desktop.in=.desktop) $(desktop_DATA): $(desktop_in_files) $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ +metainfo_in_files=org.pulseaudio.pavucontrol.metainfo.xml.in +metainfo_DATA=$(metainfo_in_files:.metainfo.xml.in=.metainfo.xml) +$(metainfo_DATA): $(metainfo_in_files) + $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ + pavucontrol_SOURCES= \ minimalstreamwidget.h minimalstreamwidget.cc \ channelwidget.h channelwidget.cc \ diff --git a/src/meson.build b/src/meson.build index d480475..f8a4b81 100644 --- a/src/meson.build +++ b/src/meson.build @@ -40,3 +40,12 @@ desktop_file = i18n.merge_file( install : true, install_dir : join_paths(datadir, 'applications'), ) + +appdata_file = i18n.merge_file( + input : 'org.pulseaudio.pavucontrol.metainfo.xml.in', + output : 'org.pulseaudio.pavucontrol.metainfo.xml', + po_dir : po_dir, + type : 'xml', + install : true, + install_dir : datadir / 'metainfo', +) diff --git a/src/org.pulseaudio.pavucontrol.metainfo.xml.in b/src/org.pulseaudio.pavucontrol.metainfo.xml.in new file mode 100644 index 0000000..c83e805 --- /dev/null +++ b/src/org.pulseaudio.pavucontrol.metainfo.xml.in @@ -0,0 +1,65 @@ + + + + org.pulseaudio.pavucontrol + pavucontrol + pavucontrol.desktop + Volume Control + Adjust device and app volumes + The PulseAudio Developers + + The PulseAudio Developers + + +

PulseAudio Volume Control (pavucontrol) is a volume control tool (“mixer”) for the PulseAudio sound server. In contrast to classic mixer tools, this one allows you to control both the volume of hardware devices and of each playback stream separately.

+
+ + pavucontrol.desktop + + + + The “Playback” tab + https://freedesktop.org/software/pulseaudio/pavucontrol/screenshots/pavucontrol-playback.png + + + The “Recording” tab + https://freedesktop.org/software/pulseaudio/pavucontrol/screenshots/pavucontrol-record.png + + + The “Output” tab + https://freedesktop.org/software/pulseaudio/pavucontrol/screenshots/pavucontrol-output.png + + + The “Input” tab + https://freedesktop.org/software/pulseaudio/pavucontrol/screenshots/pavucontrol-input.png + + + The “Configuration” tab + https://freedesktop.org/software/pulseaudio/pavucontrol/screenshots/pavucontrol-config.png + + + + + + +
    +
  • There can now be only one pavucontrol window open at a time. Trying to start pavucontrol for a second time brings the first window to foreground.
  • +
  • Added a "Show volume meters" checkbox to the Configuration tab. Disabling the volume meters reduces CPU use.
  • +
  • Improve the use of space (remove useless margins and paddings).
  • +
  • Use a more appropriate icon for the channel lock button.
  • +
  • Better channel label layout, prevents volume sliders from getting unaligned.
  • +
  • Maximum latency offset increased from 2 to 5 seconds to accommodate AirPlay devices that often have higher latency than 2 seconds (this is not that useful on newer PulseAudio versions, though, because the latency is reported much more accurately than before).
  • +
  • New --version command line option.
  • +
  • New translations: Chinese (Taiwan), Croatian, Korean, Norwegian Nynorsk, Lithuanian, Valencian.
  • +
  • Updated translations: Finnish, French, German, Italian, Japanese, Polish, Swedish.
  • +
+
+
+
+ + CC0-1.0 + GPL-2.0+ + https://freedesktop.org/software/pulseaudio/pavucontrol/ + https://gitlab.freedesktop.org/pulseaudio/pavucontrol/issues + https://gitlab.freedesktop.org/pulseaudio/pavucontrol/issues/new +