Merge lp:~michihenning/unity-scopes-api/config-params into lp:unity-scopes-api

Proposed by Michi Henning
Status: Merged
Approved by: Paweł Stołowski
Approved revision: 276
Merged at revision: 277
Proposed branch: lp:~michihenning/unity-scopes-api/config-params
Merge into: lp:unity-scopes-api
Diff against target: 58 lines (+28/-6)
1 file modified
doc/tutorial.dox (+28/-6)
To merge this branch: bzr merge lp:~michihenning/unity-scopes-api/config-params
Reviewer Review Type Date Requested Status
Paweł Stołowski (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+245623@code.launchpad.net

Commit message

Documented missing config settings.

Description of the change

Documented missing config settings.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/tutorial.dox'
2--- doc/tutorial.dox 2014-12-10 10:15:55 +0000
3+++ doc/tutorial.dox 2015-01-06 06:09:16 +0000
4@@ -1128,6 +1128,9 @@
5 ResultsTtlType = None, Small, Medium, or Large
6 ChildScopes =
7 Keywords =
8+ IdleTimeout = idle timeout in seconds
9+ LocationDataNeeded = true or false
10+ ScopeRunner = path_to_scope_runner args... %R %S
11
12 [Appearance]
13 ForegroundColor = default text color (defaults to theme-provided foreground color)
14@@ -1142,7 +1145,10 @@
15 PageHeader.DividerColor = color of the header divider
16 PageHeader.NavigationBackground = background scheme of the navigation bar
17
18-The `ScopeConfig` group is mandatory and must contain settings for at least `DisplayName`, `Description`, and `Author`.
19+The `ScopeConfig` group is mandatory. The information in this group makes the scope known to the registry.
20+In addition, this information controls how the scope appears in the "Scopes" scope.
21+
22+The `ScopeConfig` group must contain settings for at least `DisplayName`, `Description`, and `Author`.
23 `DisplayName` and `Description` can (and should) be localized. For example:
24
25 `Description[de_DE] = Fußballergebnisse`
26@@ -1154,11 +1160,27 @@
27 your scope is installed.
28 If not set, the default value is 0. You can set the value to any integer >= 1.
29
30-In addition to allowing the registry to make the scope available, this information controls how the scope appears
31-in the "Scopes" scope.
32-
33-The group `Appearance` and all keys within are optional and can be used to customize the look of the scope.
34-Some of the `Appearance` keys (like `PageHeader.Background`) require background scheme uris. Valid uris for these keys include:
35+The `IdleTimeout` key controls how long a scope can remain idle before it is told to stop by the registry (or
36+killed if it does not stop within 4 seconds). The default idle timeout is 40 seconds, meaning that a
37+scope will be told to stop if no query was sent to it for that amount of time.
38+
39+`LocationDataNeeded` should be set to `true` if the scope requires location data. In that case, the
40+\link unity::scopes::SearchMetadata SearchMetadata\endlink provides access to
41+\link unity::scopes::Location Location\endlink information
42+(assuming the user has granted location permission to the scope). If not set, the default value is `false`.
43+
44+The `Scoperunner` key defines a command line to be executed when the scope is started by the registry.
45+Typically, scopes do not need to change this setting. It is provided mainly to allow scopes implemented
46+in languages other than C++ to be started, as well as for debugging.
47+For example, the following setting causes a scope to be run under `gdb`:
48+
49+`ScopeRunner = /usr/bin/gdb --ex run --args /usr/lib/x86_64-linux-gnu/unity-scopes/scoperunner %R %S`
50+
51+The `%R` expands to the path to the `Runtime.ini` config file, and `%S` expands to the scope's `.ini` file.
52+
53+The `Appearance` group and all keys within it are optional and can be used to customize the look of the scope.
54+Some of the `Appearance` keys (such as `PageHeader.Background`) require background scheme uris.
55+Valid uris for these keys include:
56
57 <ul>
58 <li>color:///\#aarrggbb</li>

Subscribers

People subscribed via source and target branches

to all changes: