Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 21 months ago

Closed 20 months ago

#10982 closed Patch - Bug Fix (fixed)

Hardware Profile submission fails when MYTHCONFDIR is set

Reported by: Lawrence Rust <lvr@…> Owned by: wagnerrp
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@…> 21 months ago.

Download all attachments as: .zip

Change History (4)

Changed 21 months ago by Lawrence Rust <lvr@…>

comment:1 Changed 21 months ago by wagnerrp

  • Owner set to wagnerrp
  • Status changed from new to accepted
  • Version changed from Master Head to 0.25-fixes

comment:2 Changed 20 months ago by wagnerrp

  • Milestone changed from unknown to 0.26

comment:3 Changed 20 months ago by Raymond Wagner <rwagner@…>

  • Resolution set to fixed
  • Status changed from accepted to closed

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.