← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1495062] [NEW] QML project .desktop Exec line incorrectly uses $@

 

Public bug reported:

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.

** Affects: qtcreator-plugin-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1495062

Title:
  QML project .desktop Exec line incorrectly uses $@

Status in qtcreator-plugin-ubuntu package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1495062/+subscriptions


Follow ups