QML project .desktop Exec line incorrectly uses $@

Bug #1495062 reported by Stuart Langridge
6
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://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables, so this line should perhaps be

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

Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
assignee: nobody → Zoltan Balogh (bzoltan)
status: New → In Progress
importance: Undecided → Medium
Zoltan Balogh (bzoltan)
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 3.5.0+16.04.20151126-0ubuntu1

---------------
qtcreator-plugin-ubuntu (3.5.0+16.04.20151126-0ubuntu1) xenial; urgency=medium

  [ Benjamin Zeller ]
  * Fix Bug lp:1494566 "Tools/Ubuntu/Showcase gallery is not working
    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_chroot_wrapper.py craches when build in non ASCII build dir"
    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

Changed in qtcreator-plugin-ubuntu (Ubuntu):
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.