Opened 12 years ago

Closed 12 years ago

#10982 closed Patch - Bug Fix (fixed)

Hardware Profile submission fails when MYTHCONFDIR is set

Reported by: Lawrence Rust <lvr@…> Owned by: Raymond Wagner
Priority: minor Milestone: 0.26
Component: MythTV - General Version: 0.25-fixes
Severity: medium Keywords: hardware profile MYTHCONFDIR
Cc: Ticket locked: no

Description

If the MYTHCONFDIR EV is set to a directory other than the default ~/.mythtv then sendProfile.py fails and the user is unable to submit their hardware profile:

smolt.UUIDError: Unable to save UUID to /home/lvr/.mythtv/HardwareProfile/hw-uuid.  Please run once as root.
sendProfile.py exited with error 1: FAILURE

The attached patch fixes config.py to use MYTHCONFDIR if it's set. The bug also affects 0.25.

Attachments (1)

0001-Fix-hardwareProfile-to-work-with-MYTHCONFDIR-environ.patch (1.6 KB) - added by Lawrence Rust <lvr@…> 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Lawrence Rust <lvr@…>

comment:1 Changed 12 years ago by Raymond Wagner

Owner: set to Raymond Wagner
Status: newaccepted
Version: Master Head0.25-fixes

comment:2 Changed 12 years ago by Raymond Wagner

Milestone: unknown0.26

comment:3 Changed 12 years ago by Raymond Wagner <rwagner@…>

Resolution: fixed
Status: acceptedclosed

In c96ded16b2d01a2d11e252a09103004843bf7438/mythtv:

Use config detection in Python bindings for stored smolt data.

This makes the Python bindings to store the location of the config.xml
it used for database access. This path is then used by the smolt
hardware profile for storage of its UUID files, replacing the hard coded
use of $HOME.

Fixes #10982

Note: See TracTickets for help on using tickets.