unity needs applications to inform about some details on a desktop file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Undecided
|
Leo Arias | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
A couple of days ago the autopilot tests in Ubuntu UI Toolkit and some other apps started failing. We found that qmlscene was not being launched on top of unity, and then autopilot could not interact with it.
The cause is a policy change on Unity. According to greyback:
In shell we're imposing a policy that any application that draws to screen, must inform shell of certain information (name, icon, stage) so shell can manage it properly. This info is what desktop file is for anyway, but there's no reliable way to find the desktop file for a process. So for now we demand this desktop_file_hint
So, we need to launch the applications on autopilot with a desktop_file_hint pointing to a file on a well know location like ~/.local/
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Omer Akram (community): Approve
-
Diff: 490 lines (+278/-111)6 files modifiedexamples/ubuntu-ui-toolkit-gallery/ubuntu-ui-toolkit-gallery.desktop (+4/-0)
tests/autopilot/ubuntuuitoolkit/base.py (+37/-0)
tests/autopilot/ubuntuuitoolkit/tests/__init__.py (+115/-70)
tests/autopilot/ubuntuuitoolkit/tests/gallery/test_gallery.py (+75/-36)
tests/autopilot/ubuntuuitoolkit/tests/test_base.py (+42/-0)
tests/autopilot/ubuntuuitoolkit/tests/test_emulators.py (+5/-5)
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Also from greyback: in not-too distant future, we'll be using upstart to launch all applications, and upstart will manage this for you
So, on the toolkit I'm cleaning the test cases code to make sure it's easier to change on the future.