CHECKBOX_DATA mapping is not working

Bug #304736 reported by Ara Pulido
2
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Undecided
Marc Tardif

Bug Description

Runing from latest code in trunk.

If I run

$ CHECKBOX_DATA=/tmp sudo ./bin/checkbox-gtk

still creates the report 'submission.xml' under '.', instead of /tmp

Revision history for this message
Marc Tardif (cr3) wrote :

Can you try running sudo with the -E option so that environment variables are preserved:

  $ CHECKBOX_DATA=/tmp sudo -E ./bin/checkbox-gtk

Changed in checkbox:
assignee: nobody → cr3
status: New → Incomplete
status: Incomplete → Confirmed
Revision history for this message
Marc Tardif (cr3) wrote :

The problem is that the shell script hard code the values for CHECKBOX_DATA and CHECKBOX_SHARE:

export CHECKBOX_DATA=/var/lib/checkbox
export CHECKBOX_SHARE=/usr/share/checkbox

Instead, these variables should support being overwritten by the environment.

Marc Tardif (cr3)
Changed in checkbox:
status: Confirmed → Fix Committed
Marc Tardif (cr3)
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.