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

Bug #1325984 reported by Jani Monoses on 2014-06-03
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Gerry Boland
unity-mir (Ubuntu)
unity8 (Ubuntu)

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) on 2014-06-03
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
Jani Monoses (jani) wrote :

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

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.

Michał Sawicz (saviq) wrote :

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

Oliver Grawert (ogra) wrote :

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

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  Edit
Everyone can see this information.

Other bug subscribers