Comment 2 for bug 1778557

Revision history for this message
Brian Murray (brian-murray) wrote : Re: ubuntu-bug works properly only if we are in $HOME dir

This is actually an issue with the apport package hook for cheese, found in /usr/share/apport/package-hooks/source_cheese.py. Here's the offending code:

HOME = os.path.expanduser("~")

def add_info(report, ui):
    add_tags = []

    response = ui.information("Before continuing, please close Cheese if it is already running!\n\nCheese will now be started in debugging mode.\n\nTry to reproduce the problem you are facing\nand 'Close' Cheese.")
    ## run cheese in debug mode all the bugs need this!
    os.popen("env GST_DEBUG=*cheese*:3 cheese 2>&1 | tee /dev/tty >>~/.cache/CheeseDebug.txt")

    report['CheeseDebug.txt'] = ('.cache/CheeseDebug.txt', False)