[Bug 1778557] Re: ubuntu-bug works properly only if we are in $HOME dir
Brian Murray
brian at ubuntu.com
Tue Jun 26 17:34:33 UTC 2018
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)
** Package changed: apport (Ubuntu) => cheese (Ubuntu)
** Changed in: cheese (Ubuntu)
Importance: Undecided => High
** Changed in: cheese (Ubuntu)
Status: New => Triaged
** Summary changed:
- ubuntu-bug works properly only if we are in $HOME dir
+ apport package hook works properly only if we are in $HOME dir
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1778557
Title:
apport package hook works properly only if we are in $HOME dir
Status in cheese package in Ubuntu:
Triaged
Bug description:
Chdir to any dir except $HOME.
Run
ubuntu-bug cheese
(You probably should install cheese before doing this.)
Answer the questions and press Send button.
A dialog says:
[Errno 2] No such file or directory: '.cache/CheeseDebug.txt'
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apport 2.20.9-0ubuntu7.2
ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
Uname: Linux 4.15.0-23-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Jun 25 19:19:36 2018
InstallationDate: Installed on 2018-06-23 (1 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_IL
SHELL=/bin/bash
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cheese/+bug/1778557/+subscriptions
More information about the foundations-bugs
mailing list