Unity 8 does not honor Path= in desktop files

Bug #1204596 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-mir
Fix Released
High
Gerry Boland
qtubuntu (Ubuntu)
Fix Released
Undecided
Michał Sawicz
unity-mir (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Click packages use Path= in desktop files and its use is an important part of how click packages work.

For example, this works in Unity 7:
Exec=aa-exec -p com.ubuntu.developer.jdstrand.evilapp_evilapp_0.1 -- /usr/bin/qmlscene -I backend/modules app/evilapp.qml
Path=/opt/click.ubuntu.com/com.ubuntu.developer.jdstrand.evilapp/0.1

but in Unity 8, Path= is not honored and qmlscene can't find backend/modules or app/evilapp.qml and the desktop file needs to be adjust to use:
Exec=aa-exec -p com.ubuntu.developer.jdstrand.evilapp_evilapp_0.1 -- /usr/bin/qmlscene -I /opt/click.ubuntu.com/com.ubuntu.developer.jdstrand.evilapp/0.1/backend/modules /opt/click.ubuntu.com/com.ubuntu.developer.jdstrand.evilapp/0.1/app/evilapp.qml
Path=/opt/click.ubuntu.com/com.ubuntu.developer.jdstrand.evilapp/0.1

Click shouldn't be transmogrifying the paths in Exec= (and currently doesn't), so application developers need to hard code the path in the Exec= themselves, which we should not be doing because click can be configured to use a different top level directory than /opt/click.ubuntu.com.

Related branches

Gerry Boland (gerboland)
Changed in unity-mir:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Gerry Boland (gerboland)
Michał Sawicz (saviq)
Changed in qtubuntu (Ubuntu):
status: New → In Progress
assignee: nobody → Michał Sawicz (saviq)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtubuntu - 0.52+13.10.20130812.3-0ubuntu1

---------------
qtubuntu (0.52+13.10.20130812.3-0ubuntu1) saucy; urgency=low

  [ Michał Sawicz ]
  * Respect Path= from .desktop files. (LP: #1204596)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 163
 -- Ubuntu daily release <email address hidden> Mon, 12 Aug 2013 14:06:28 +0000

Changed in qtubuntu (Ubuntu):
status: In Progress → Fix Released
Gerry Boland (gerboland)
Changed in unity-mir:
status: Confirmed → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:unity-mir at revision None, scheduled for release in unity-mir, milestone Unknown

Changed in unity-mir:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-mir - 0.1+13.10.20130827-0ubuntu1+build1

---------------
unity-mir (0.1+13.10.20130827-0ubuntu1+build1) saucy; urgency=low

  * No change rebuild to get mir out of -proposed
 -- Robert Ancell <email address hidden> Wed, 28 Aug 2013 12:08:54 +1200

Changed in unity-mir (Ubuntu):
status: New → Fix Released
Michał Sawicz (saviq)
Changed in unity-mir:
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.