quickly package --extras doesn't generate a usable desktop file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly |
Fix Released
|
Undecided
|
Unassigned | ||
quickly (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The commands 'quickly package --extras' and 'quickly submitubuntu' do not create debian packages that can launch the program from the menus.
So those two commands, which are used for ARB submission, will appear completely broken (and are due to other bugs). Since we want to encourage ARB submission where appropriate, having such bugs would be unfortunate.
[Test Case]
cd /tmp
quickly create ubuntu-application ubuapp
# close opened window
cd ubuapp
quickly package --extras
sudo dpkg -i ../ubuapp_
# Search for ubuapp in the menu and try to launch it
[Regression Potential]
My fix carefully only affects the --extras path (which is also used for submitubuntu). I intentionally chose an ugly way to fix this so that I could only affect that path and not regress anything else.
In 12.10, my hope is to eventually implement a non-ugly fix. But I'm confident this will only affect users of --extras.
[Original Report]
1) the desktop file is installed to /opt/extras.
2) The Exec and Icon lines in the desktop file don't point to the actually installed files in opt:
Exec=qreator
Icon=/usr/
Even if you edit the icon path to be correct for opt, setup.py stomps on it since "datadir" isn't set correctly (see bug 998910) and this is called:
for line in fin:
if 'Icon=' in line:
Related branches
- Didier Roche-Tolomelli: Approve
-
Diff: 357 lines (+186/-132)4 files modifieddata/templates/ubuntu-application/internal/packaging.py (+86/-55)
data/templates/ubuntu-application/test/extras.sh (+99/-0)
data/templates/ubuntu-application/test/metadata.sh (+0/-76)
data/templates/ubuntu-application/test/package.sh (+1/-1)
Changed in quickly: | |
status: | New → In Progress |
assignee: | nobody → Andrew Starr-Bochicchio (andrewsomething) |
Changed in quickly: | |
assignee: | Andrew Starr-Bochicchio (andrewsomething) → nobody |
status: | In Progress → Fix Committed |
Changed in quickly: | |
milestone: | none → 12.05 |
Changed in quickly: | |
status: | Fix Committed → Fix Released |
description: | updated |
Whoops. I had started on a branch to fix the extras code before I saw this bug. :-/ I'll link my branch too.