debian/0000755000000000000000000000000012017665374007201 5ustar debian/compat0000644000000000000000000000000212002763000010352 0ustar 7 debian/patches/0000755000000000000000000000000012017664757010634 5ustar debian/patches/0001-cards_without_mixer.patch0000644000000000000000000000366512017665134016316 0ustar Description: Fix crash when the audio card has no mixers. Debian bugs: - http://bugs.debian.org/673858 - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684363 Origin: upstream Bug: https://code.google.com/p/volti/issues/detail?id=27 --- src/alsactrl.py | 9 +++++++-- src/mixer.py | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) --- volti.orig/src/alsactrl.py +++ volti/src/alsactrl.py @@ -45,7 +45,7 @@ class AlsaControl(): self.reopen(self.card_index, control) self._check_version() except Exception, err: - log.Error("can't open first available control for card %s\nerror: %s" % ( + log.Warn("can't open first available control for card %s\nerror: %s" % ( self.get_card_name(), str(err))) def __del__(self): @@ -189,7 +189,12 @@ class AlsaControl(): def get_mixers(self, card_index=0): """ Returns mixers list """ mixers = [] - for mixer in alsa.mixers(card_index): + amixers = [] + try: + amixers = alsa.mixers(card_index) + except alsa.ALSAAudioError: + pass + for mixer in amixers: try: m = alsa.Mixer(control=mixer, cardindex=card_index) cap = m.volumecap() --- volti.orig/src/mixer.py +++ volti/src/mixer.py @@ -139,7 +139,12 @@ class Mixer(gtk.Window): self.cp.get("card-%d" % card_index, "mask_control")) except: self.control_mask[card_index] = 0 - for count, mixer in enumerate(alsa.mixers(card_index)): + amixers = [] + try: + amixers = alsa.mixers(card_index) + except alsa.ALSAAudioError: + pass + for count, mixer in enumerate(amixers): self.control_mask[card_index] |= (1 << count) n = 0 debian/patches/series0000644000000000000000000000003712002763000012020 0ustar 0001-cards_without_mixer.patch debian/rules0000755000000000000000000000047312002763000010240 0ustar #!/usr/bin/make -f %: dh $@ --with python2 override_dh_auto_install: dh_auto_install -- \ --install-lib=/usr/lib/volti override_dh_install: dh_install cd debian/volti && \ mv usr/bin/volti usr/lib/volti/volti.run && \ mv usr/bin/volti-mixer usr/lib/volti/ && \ mv usr/bin/volti-remote usr/lib/volti/ debian/control0000644000000000000000000000241012002763000010554 0ustar Source: volti Section: sound Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: Alessio Treglia Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3) X-Python-Version: >= 2.6 Standards-Version: 3.9.3 Homepage: http://code.google.com/p/volti/ Vcs-Git: git://anonscm.debian.org/pkg-multimedia/volti.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/volti.git Package: volti Architecture: all Depends: python-alsaaudio, python-dbus, python-gobject, python-gtk2, python-xlib, ${misc:Depends}, ${python:Depends} Description: control audio volume from system tray/notification area Volti is a lightweight GTK+ application for controlling audio volume from system tray/notification area. . Features: * no PulseAudio, GStreamer, Phonon etc. only ALSA is needed * internal mixer application, either choosing any mixer app is possible * left click opens volume scale (slider) * scroll wheel on tray icon changes volume, increment in percents is configurable * configurable middle click to toggle 'mute' or 'show mixer' * nice tooltip with card and volume info * support for multimedia keys * support desktop notifications on keys events debian/volti.links0000644000000000000000000000020412002763000011347 0ustar usr/lib/volti/volti.run usr/bin/volti usr/lib/volti/volti-mixer usr/bin/volti-mixer usr/lib/volti/volti-remote usr/bin/volti-remote debian/changelog0000644000000000000000000000170512017665374011056 0ustar volti (0.2.3-5) unstable; urgency=low * Avoid crashes with 'odd' audio configurations (i.e. cards with no mixer controls). (Closes: #684363) -- Alessio Treglia Thu, 30 Aug 2012 15:30:04 +0200 volti (0.2.3-4) unstable; urgency=medium * Fix typo in 0001-cards_without_mixer.patch which makes volti almost unusable. (Closes: #679922) -- Alessio Treglia Sun, 22 Jul 2012 13:44:06 +0200 volti (0.2.3-3) unstable; urgency=low * Fix crash when the audio card has no mixers. (Closes: #673858) -- Alessio Treglia Mon, 21 May 2012 21:07:10 +0200 volti (0.2.3-2) unstable; urgency=low * Drop dependency on python-glade2, volti already uses GtkBuilder. -- Alessio Treglia Sat, 19 May 2012 21:41:29 +0200 volti (0.2.3-1) unstable; urgency=low * Initial release. (Closes: #670887) -- Alessio Treglia Mon, 30 Apr 2012 03:23:53 +0200 debian/gbp.conf0000644000000000000000000000003612002763000010572 0ustar [DEFAULT] pristine-tar = True debian/copyright0000644000000000000000000000215612002763000011113 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Volti Upstream-Contact: Milan Nikolic Source: http://code.google.com/p/volti/downloads/list Files: * Copyright: No copyright holders License: GPL-3+ Files: debian/* Copyright: 2012 Alessio Treglia License: GPL-3+ License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Comment: On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. . You should have received a copy of the GNU General Public License along with this program. If not, see . debian/source/0000755000000000000000000000000012002763000010454 5ustar debian/source/format0000644000000000000000000000001412002763000011662 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000020312002763000010200 0ustar version=3 http://code.google.com/p/volti/downloads/list?can=1 \ .*/volti-(\d[\d.]*)\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz)