unity-mir rejects apps with .desktop files with custom names

Bug #1325984 reported by Jani Monoses
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
unity-mir
Triaged
High
Gerry Boland
unity-mir (Ubuntu)
Confirmed
Undecided
Unassigned
unity8 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On utopic-proposed (r62) I installed a click app and tried running it with qmlscene from the command line passing it its own desktop file.

phablet@ubuntu-phablet:~$ qmlscene --desktop_file_hint=/opt/click.ubuntu.com/com.ubuntu.developer.jani.monoses.railroad/current/railroad.desktop /opt/click.ubuntu.com/com.ubuntu.developer.jani.monoses.railroad/current/main.qml
QUbuntu: Could not create application instance
Aborted (core dumped)

Passing another preinstalled desktop app lets it run though

qmlscene --desktop_file_hint=/usr/share/applications/webbrowser-app.desktop /opt/click.ubuntu.com/com.ubuntu.developer.jani.monoses.railroad/current/main.qml

Copying either of the desktop files to /home/phablet/webbrowser-app.desktop and then passing that path works too.

It looks like the name of the file matters not its path.

Michał Sawicz (saviq)
summary: - Running qmlscene from the command line crashes
+ unity-mir rejects apps with .desktop files in custom locations
summary: - unity-mir rejects apps with .desktop files in custom locations
+ unity-mir rejects apps with .desktop files with custom names
Revision history for this message
Jani Monoses (jani) wrote :

This worked on the trusty 302 image on the nexus 4, tested earlier today, before the utopic upgrade.

Revision history for this message
Michał Sawicz (saviq) wrote :
Revision history for this message
Michael Terry (mterry) wrote :

I'm skeptical that 934 did it. That new method call is only used by the greeter. Shouldn't affect user stuff.

Revision history for this message
Michał Sawicz (saviq) wrote :

Yeah, I looked through it and indeed it didn't look relevant. Wonder what else could have caused it then...

Revision history for this message
Oliver Grawert (ogra) wrote :

if that happens, please attach the output of env ... probably something is not set right in teh environment

Revision history for this message
Michał Sawicz (saviq) wrote :

unity8.log says:

ApplicationManager REJECTED connection from app with pid 15481 as desktop_file_hint file not found

Changed in unity8 (Ubuntu):
status: New → Invalid
Changed in unity-mir (Ubuntu):
status: New → Confirmed
Changed in unity-mir:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Gerry Boland (gerboland)
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.