From cd07591cece834c759c5875f95df7723589a8ba2 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Tue, 29 Oct 2013 12:20:47 -0700 Subject: [PATCH] Add org.mpris.MediaPlayer2.Activate Activate is meant as a replacement for Raise, which doesn't support passing platform data to the player (such as the timestamp of the user action for focus stealing prevention). It is modelled after org.freedesktop.Application.Acticate in the desktop entry spec. https://bugs.freedesktop.org/show_bug.cgi?id=62917 --- spec/org.mpris.MediaPlayer2.xml | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/spec/org.mpris.MediaPlayer2.xml b/spec/org.mpris.MediaPlayer2.xml index aca33e6..51bbc52 100644 --- a/spec/org.mpris.MediaPlayer2.xml +++ b/spec/org.mpris.MediaPlayer2.xml @@ -4,8 +4,13 @@ +

+ Note: this method is deprecated in favor of + Activate. +

+

Brings the media player's user interface to the front using any appropriate mechanism available.

@@ -18,6 +23,31 @@
+ + + +

+ Brings the media player's user interface to the front using any + appropriate mechanism available. +

+

+ The media player may be unable to control how its user interface + is displayed, or it may not have a graphical user interface at all. + In this case, the CanActivate property is + false and this method does nothing. +

+

+ The platform-data parameter is used in a similar way to + environment variables. Currently, the only specified field if + desktop-startup-id. This should be a string of + the same value as would be stored in the DESKTOP_STARTUP_ID + environment variable, as specified by the + Startup + Notification Protocol Specification. +

+
+
+

Causes the media player to stop running.

@@ -111,8 +141,13 @@ +

+ Note: this property is deprecated in favor of + CanActivate. +

+

If false, calling Raise will have no effect, and may raise a NotSupported error. If true, calling @@ -123,6 +158,15 @@ + + +

+ Indicates whether this player supports the + Activate method call. +

+
+
+

-- 1.8.3.2