I've just checked vivid and it's still the case. Note, the original
steps to reproduce no longer apply because youtube scope doesn't seem to
be producing previews for channels with 'Search' button. I'm not sure
which of the existing scopes exhibit it offhand.

I've reproduced it again with slightly modifed mediascanner-video scope
(added a 'Search' button to its preview). After some more tests I can
conclude the following about preview buttons which have uris set to
canned queries (should execute search):

* it works, when it points to a different scope than the one displaying the 
preview.
* it doesn't work when it points to the same scope. In such case the search is 
executed in the background, but preview is not dismissed. After exiting the 
preview manually one can see new search results proving the query was in fact 
executed.

Here is the change I applied to mediascanner scope for reproducing;
change uri to "scope://mediascanner-music?q=" to see it working as
expected because different scope needs to be opened).

=== modified file 'src/myvideos/video-scope.cpp'
--- src/myvideos/video-scope.cpp        2015-04-15 15:58:52 +0000
+++ src/myvideos/video-scope.cpp        2015-04-17 09:58:29 +0000
@@ -281,6 +281,12 @@
                 {"uri", Variant(uri)},
                 {"label", Variant(_("Play"))}
             });
+       builder.add_tuple({
+                {"id", Variant("sr")},
+                {"uri", Variant("scope://mediascanner-video?q=foo")},
+                {"label", Variant(_("Search"))}
+            });
+
         actions.add_attribute_value("actions", builder.end());
     }

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1335761

Title:
  [Dash] Activating a preview with a scope URI for the current scope
  doesn't send you back to the results view

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-shell/+bug/1335761/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to