Comment 4 for bug 1021733

Revision history for this message
Martin Pitt (pitti) wrote :

Note, in ubuntu-drivers-common 0.2.61 I added a simple wrapper tool which pretends that you have an nvidia, fglrx, and broadcom wifi card. Run it like this in the s-p checkout:

 PYTHONPATH=. /usr/share/ubuntu-drivers-common/fake-devices-wrapper ./software-properties-gtk --data-dir=data

For s-p to work with the wrapper you need a tiny patch to s-p:

--- softwareproperties/gtk/SoftwarePropertiesGtk.py 2012-07-06 20:21:44 +0000
+++ softwareproperties/gtk/SoftwarePropertiesGtk.py 2012-07-12 14:46:42 +0000
@@ -935,7 +935,7 @@

     try:
       name = subprocess.check_output([db_command,
- device_info['syspath'].replace('/sys', '')
+ device_info['syspath'].replace(os.getenv('SYSFS_PATH', '/sys'), '')
                                      ],
                                      universal_newlines=True)
       name = " ".join(name.split('\n'))