~ubuntu-branches/ubuntu/oneiric/cairo-dock/oneiric-201110111206

« back to all changes in this revision

Viewing changes to debian/apport/cairo-dock.py

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne, Matthieu Baerts (matttbe), Julien Lavergne
  • Date: 2009-10-04 16:33:52 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20091004163352-ttbbjfmpb8uzl8j4
Tags: 2.0.9-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New Upstream Version. (LP: #435587)
* Added apport hook in debian/apport
 - Add debian/apport
 - debian/cairo-dock-core.install: Added debian/apport/cairo-dock.py
* Use .desktop provided by upstream
 - Removed debian/*.desktop
 - debian/cairo-dock-core.install: install upstream desktop files. 

[ Julien Lavergne ]
* Adjust debian/changelog with Daniel Holbach suggestions.
* debian/patches/01_rename_cairo-dock-package-theme.patch: drop, 
  merged upstream.
* debian/patches/01-desktop-file-category.patch:
 - Remove Encoding field and set category to Utility.
* debian/patches/02-merge-changelog.patch:
 - Merge ChangeLog and ChangeLog-2.0.9.
* debian/apport: Remove commands with grep, python doesn't like it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''apport package hook for cairo-dock
 
2
 
 
3
(c) 2009 Author: Matthieu Baerts <matttbe@gmail.com>
 
4
'''
 
5
 
 
6
from apport.hookutils import *
 
7
from os import path
 
8
 
 
9
def add_info(report):
 
10
    # Build System Environment
 
11
    report['system'] = "distro = Ubuntu, architecture = %s, kernel = %s" % (command_output(['uname','-m']), command_output(['uname','-r']))
 
12
 
 
13
    attach_related_packages(report, [
 
14
            "xserver-xorg",
 
15
            "libgl1-mesa-glx",
 
16
            "libdrm2",
 
17
            "xserver-xorg-video-intel",
 
18
            "xserver-xorg-video-ati"
 
19
            ])
 
20
            
 
21
    attach_file_if_exists(report, path.expanduser('~/.config/cairo-dock/current_theme/cairo-dock.conf'), 'CairoDockConf')
 
22
    # attach_hardware(report)
 
23
    
 
24
    # One-line description of display hardware
 
25
    report['PciDisplay'] = pci_devices(PCI_DISPLAY).split('\n')[0]
 
26
 
 
27
    # GLX
 
28
    report['glxinfo'] = command_output(['glxinfo'])
 
29
 
 
30
    # Compositing
 
31
    report['CompositingMetacity'] = command_output(['gconftool-2', '--get', '/apps/metacity/general/compositing_manager'])
 
32
 
 
33
    # WM
 
34
    report['WM'] = command_output(['gconftool-2', '--get', '/desktop/gnome/applications/window_manager/current'])
 
35
 
 
36
 
 
37
## DEBUGING ##
 
38
if __name__ == '__main__':
 
39
    report = {}
 
40
    add_info(report)
 
41
    for key in report:
 
42
        print '[%s]\n%s' % (key, report[key])