QML project .desktop Exec line incorrectly uses $@
Bug #1495062 reported by
Stuart Langridge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu (Ubuntu) |
Fix Released
|
Medium
|
Zoltan Balogh |
Bug Description
On creating a new QML project, the Exec line in appname.desktop is set to
Exec=qmlscene "$@" Main.qml
This is incorrect. $@ is a Bash parameter substitution, and will not be executed. Instead, Exec lines must use field codes, as per http://
Exec=qmlscene %U Main.qml
so that URLs passed to the app (for example, from the URLDispatcher) are correctly put on the app's command line and so are retrieveable by the app itself.
Related branches
lp://staging/~bzoltan/qtcreator-plugin-ubuntu/Fixes_LP1495062
- Benjamin Zeller: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 61 lines (+5/-5)5 files modifiedshare/qtcreator/templates/wizards/ubuntu/backend-app-cmake/CMakeLists.txt (+1/-1)
share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/appName/appName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/appName/appName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmlproject/displayName.desktop (+1/-1)
share/qtcreator/templates/wizards/ubuntu/simple-i18n-cmake/CMakeLists.txt (+1/-1)
Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
This bug was fixed in the package qtcreator- plugin- ubuntu - 3.5.0+16. 04.20151126- 0ubuntu1
--------------- plugin- ubuntu (3.5.0+ 16.04.20151126- 0ubuntu1) xenial; urgency=medium
qtcreator-
[ Benjamin Zeller ] Ubuntu/ Showcase gallery is not working chroot_ wrapper. py craches when build in non ASCII build dir"
* Fix Bug lp:1494566 "Tools/
after updating my SDK" Fix Bug lp:1499135 "Cannot deploy a scope
onto phone due to reserved policy group 'debug'" Fix Bug lp:1512072
"qtc_
Fix Bug lp:1519385: Latest framework is not presented as the default
(workaround) Move image files into our own plugin so we do not clash
with the scaling image provider of UITK (LP: #1512072, #1519385,
#1494566, #1499135)
* Migrate plugin to UITK 1.3
[ Zoltán Balogh ]
* Change exec line in desktop files. Fixes LP: #1495062 (LP: #1495062)
* Correct the READMe instruction of the webapp template. Fixes LP:
#1517196 (LP: #1517196)
* Migrate the templates to 1.3 UITK
-- Zoltan Balogh <email address hidden> Thu, 26 Nov 2015 05:24:55 +0000