Testdrive does not respect XDG BaseDirectory settings

Bug #592079 reported by Stuart Langridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testdrive (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: testdrive

testdrive.py does this:
self.CACHE = "%s/.cache/%s" % (self.HOME, self.PKG)

This hardcodes ~/.cache. Instead, it should use xdg.BaseDirectory to use the user's settings for their cache folder (mine is ~/Applications/Cache, for example).

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: testdrive 1.38-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic-pae 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic-pae i686
Architecture: i386
Date: Thu Jun 10 09:57:46 2010
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: testdrive

Revision history for this message
Stuart Langridge (sil) wrote :
Changed in testdrive (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Stuart,

Could you please clear a doubt. Is XDG Base Directory specification only used in Kubuntu, or is it in Ubuntu aswell since my Ubuntu environment variables defined by the specification are empty.

Now, in which situations is the specification used.

Thank you.

RoAkSoAx

Changed in testdrive (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Andres Rodriguez (andreserl)
Revision history for this message
Stuart Langridge (sil) wrote :

It's used in Ubuntu as well. If you use the Python xdg.BaseDirectory library then it works it all out for you (it'll fall back to the correct defaults if the variables aren't defined). See xdg.BaseDirectory.xdg_cache_home.

Changed in testdrive (Ubuntu):
status: In Progress → Fix Committed
assignee: Andres Rodriguez (andreserl) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package testdrive - 2.4-0ubuntu1

---------------
testdrive (2.4-0ubuntu1) maverick; urgency=low

  * Improved settings file handling to support sections for different
    frontends:
    - testdrive, testdrive.py: Changes to support sections on settings file.
    - testdriverc: Reorganized in different sections.
    - Install testdriverc in testdrive-common instead of testdrive:
      + debian/testdrive.install: Installation of testdriverc moved to
        testdrive-common.install.
      + debian/testdrive.{postinst,preinst}: Moved to
        debian/testdrive-common.{postinst,preinst}.
  * Respect XDG BaseDirectory settings for TestDrive's cache. (LP: #592079)
  * Don't create DISK_FILE while setting defaults. This is neccesary for the
    PyGTK GUI to not create an empty DISK_FILE everytime it is launched.
    - testdrive.py: Add method to create DISK_FILE.
    - testdrive: Create the DISK_FILE right before setting up the VM.
  * Changes in launching a VM to allow multiple launches in the PyGTK
    (This change only applies to KVM for now):
    - virt/kvm.py: Return the cmd needed to launch the VM in 'testdrive'.
    - testdrive: If KVM is in use, launch the VM from here.
 -- Andres Rodriguez <email address hidden> Wed, 30 Jun 2010 20:15:51 -0400

Changed in testdrive (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Alan Hoyle (alanh) wrote : you have unread message from ladie

(Daina 25y.o) New reply for you.

Hi! I am Daina 25y.o
I have new photos, please chek mailbox for new reply here:

http://brides-hot.ru

yours Daina
with love

Note!
New free service! check info at the site!
( to unsubscribe -click link and enter e-mail address.)

Revision history for this message
Andy Kennedy (andykennedy) wrote : Order Rolex Replica watches 0nline

Hello Customer

She will definitely value your option.
Prestige is the best place where you can find everything to make the best presents for the best people.

*******
EXCELLENT TRANSACTION.....Pleasure to do business with....Prompt and courteous. Buy with confidence from this company...Beautiful timepiece!!
A thousand thanks
                     Bill Young
*******

Click here ---> http://yournewrepwatch.ru

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.