Syntax error in xkbcomp call in apport hook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xorg (Ubuntu) |
Fix Released
|
Low
|
Bryce Harrington |
Bug Description
Binary package hint: xorg
/usr/share/
script = subprocess.
but this results in:
Error: Cannot open display ":0 -"
this should instead be:
script = subprocess.
Note ':0' and '-' being passed as separate arguments to xkbcomp.
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: x11-common 1:7.4~5ubuntu9
PackageArchitec
ProcEnviron:
LC_COLLATE=C
PATH: custom, user
LANG=en_US.UTF-8
SHELL=/bin/zsh
ProcVersion: Linux version 2.6.28-3-generic (buildd@yellow) (gcc version 4.3.3 20081210 (prerelease) (Ubuntu 4.3.2-2ubuntu8) ) #4-Ubuntu SMP Fri Dec 12 22:47:31 UTC 2008
SourcePackage: xorg
Uname: Linux 2.6.28-3-generic x86_64
xkbcomp:
You might also consider converting some of this hook to use apport.hookutils, which lets you do, e.g.:
report['xkbcomp'] = hookutils. command_ output( ['xkbcomp' ,':0',' -'])
and it does the error handling for you.