Apps don't always get focused when started with upstart-app-launch
Bug #1305128 reported by
Ken VanDine
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
content-hub |
Fix Released
|
Undecided
|
Unassigned | ||
unity-mir |
Fix Released
|
Critical
|
Gerry Boland | ||
unity-mir (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
unity8 (Ubuntu) |
Invalid
|
Critical
|
Gerry Boland |
Bug Description
We initially found this bug during content picking using content-hub, which uses upstart-app-launch to start apps that are needed. I've managed to reproduce it outside of content-hub by using upstart-app-launch. I've reproduced this with image 283
Steps to reproduce:
upstart-app-launch com.ubuntu.
upstart-app-stop com.ubuntu.
Now focus an existing running app, then
upstart-app-launch com.ubuntu.
This should start gallery and focus it, instead it starts gallery without giving it focus.
Related branches
lp:~gerboland/unity-mir/fix-upstart-closed-apps2
- PS Jenkins bot (community): Approve (continuous-integration)
- Michał Sawicz: Approve
-
Diff: 1881 lines (+1429/-138) (has conflicts)9 files modifiedsrc/modules/Unity/Application/application.cpp (+11/-0)
src/modules/Unity/Application/application.h (+4/-1)
src/modules/Unity/Application/application_manager.cpp (+90/-84)
src/modules/Unity/Application/application_manager.h (+5/-5)
src/modules/Unity/Application/taskcontroller.cpp (+4/-25)
src/modules/Unity/Application/taskcontroller.h (+3/-4)
tests/CMakeLists.txt (+13/-0)
tests/application_manager_test.cpp (+1296/-16)
tests/mock_session.h (+3/-3)
Changed in unity8 (Ubuntu): | |
status: | New → Confirmed |
Changed in unity8: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → Gerry Boland (gerboland) |
Changed in unity8: | |
status: | Confirmed → In Progress |
Changed in unity-mir: | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Gerry Boland (gerboland) |
Changed in content-hub: | |
status: | New → Fix Released |
Changed in unity8 (Ubuntu): | |
assignee: | nobody → Gerry Boland (gerboland) |
importance: | Undecided → Critical |
no longer affects: | unity8 |
To post a comment you must log in.
I'm not sure whether this is related, but Saviq asked me to add a comment in here about my issue: when an application quits, the view goes back to the Apps scope, and not to the previously opened application.
You can verify what this means by creating a Google or Facebook account from the System settings: as soon as the authentication window disappears, you'll be taken back to the Apps scope and not to the Online Accounts window.
This will be fully fixed when we implement trusted sessions, but it would be nice if meanwhile we can make the experience of creating an account a bit better. :-)