No image quickly ubuntu-project based package once installed

Bug #401467 reported by Didier Roche-Tolomelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickly
Fix Released
Critical
Didier Roche-Tolomelli

Bug Description

$ testapp
/usr/bin/testapp:93: GtkWarning: Could not load image '../data/media/icon.png': Impossible d'ouvrir le fichier « /usr/share/gfre/../data/media/icon.png » : Aucun fichier ou dossier de ce type
  builder.add_from_file(ui_filename)
/usr/bin/testapp:93: GtkWarning: Could not load image '../data/media/background.png': Impossible d'ouvrir le fichier « /usr/share/gfre/../data/media/background.png » : Aucun fichier ou dossier de ce type
  builder.add_from_file(ui_filename)
/usr/lib/python2.6/dist-packages/gfre/AbouttestappDialog.py:48: GtkWarning: Could not load image '../data/media/icon.png': Impossible d'ouvrir le fichier « /usr/share/gfre/../data/media/icon.png » : Aucun fichier ou dossier de ce type
  builder.add_from_file(ui_filename)

(data/ is a mandatory when packaging using distutils-extra.auto and only exists during project creation)

4 solutions:
-> /usr/lib/python2.6/dist-packages/gfre/AbouttestappDialog.py and /usr/bin/testapp should detects if data/ exists (in quickly project file). That will means the same for every files using media files :/
-> copy in some sort of "build" directory all files in the projects and then executing python-mkdebian + packaging when executing a package-related command. We can, by this way, copy every unknown files/directories in the data/ directory and then package. This will make things more complex with python-mkdebian as we will have to copy back the debian/ folder to the project trunk once the package is created (at least, for debian/changelog tracking).
-> Make the setup.py more complex to not use distutils-extra.auto for the media/ directory
-> add a function that do that for the user (solution 1, but easier).

Thoughts?

Changed in quickly:
importance: Undecided → Critical
status: New → Triaged
assignee: nobody → Didier Roche (didrocks)
Changed in quickly:
milestone: none → 0.1
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

See http://bazaar.launchpad.net/~quickly/quickly/trunk/revision/187
now, for developers, getting the data path is just a matter of:

from project_name.project_nameconfig import getdatapath
foo_path = getdatapath()

Changed in quickly:
status: Triaged → Fix Committed
Changed in quickly:
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.