diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-07-12 10:46:10 +0200 |
---|---|---|
committer | Holger Freyther <holger+qt@freyther.de> | 2017-09-12 06:14:18 +0000 |
commit | cdc7adb2a3696c41d01c715542cb82b984e2631e (patch) | |
tree | 65f27a78b5881109ea6ba2984786b582d11c3950 /wayland/democompositor/apps | |
parent | 66b1627e6051e3d5f37ef5a04fa1f1e5b563b94d (diff) |
democompositor: Describe applications using a JSON file
Inspired by the freedesktop.org specification define a
simple JSON format and add files for the existing demo
applications using this specifcation.
Install them into the QStandardPaths::DataLocation/apps
direcyory.
Change-Id: If5bbec8ec3a1b375f1e58f8534545b89507cc1a8
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'wayland/democompositor/apps')
-rw-r--r-- | wayland/democompositor/apps/README | 20 | ||||
-rw-r--r-- | wayland/democompositor/apps/files/clock.app | 8 | ||||
-rw-r--r-- | wayland/democompositor/apps/files/maps.app | 8 | ||||
-rw-r--r-- | wayland/democompositor/apps/files/rss.app | 8 | ||||
-rw-r--r-- | wayland/democompositor/apps/files/stocqt.app | 8 |
5 files changed, 52 insertions, 0 deletions
diff --git a/wayland/democompositor/apps/README b/wayland/democompositor/apps/README new file mode 100644 index 0000000..361b2c1 --- /dev/null +++ b/wayland/democompositor/apps/README @@ -0,0 +1,20 @@ +A directory holding a list of applications. There is one JSON file +per launchable application. The content is inspired by the "Desktop +Entry Specification" of freedesktop.org. + +Application files need to be installed into any of the paths that +will be listed for QStandardPaths::DataLocation/apps. In the +case of the democompositor this can be +/usr/share/democompositor/apps. + +The content of the files must follow: + +Name Description Required JSON type +Type Type of entry. Currently only Yes String + Application is supported. +Version The version of the specification + addressed. Currently version 1 Yes Number +Icon The icon to use for display Yes String +Name A user displayable name Yes String +Exec Application to execute to launch Yes String +Path The directory to search for the app No String diff --git a/wayland/democompositor/apps/files/clock.app b/wayland/democompositor/apps/files/clock.app new file mode 100644 index 0000000..d6f5f56 --- /dev/null +++ b/wayland/democompositor/apps/files/clock.app @@ -0,0 +1,8 @@ +{ + "Type": "Application", + "Version": 1, + "Icon": "qrc:/images/Icon_Clocks.png", + "Name": "Clocks", + "Exec": "clocks", + "Path": "./" +} diff --git a/wayland/democompositor/apps/files/maps.app b/wayland/democompositor/apps/files/maps.app new file mode 100644 index 0000000..e88899a --- /dev/null +++ b/wayland/democompositor/apps/files/maps.app @@ -0,0 +1,8 @@ +{ + "Type": "Application", + "Version": 1, + "Icon": "qrc:/images/Icon_Maps.png", + "Name": "Maps", + "Exec": "qml_location_mapviewer", + "Path": "./" +} diff --git a/wayland/democompositor/apps/files/rss.app b/wayland/democompositor/apps/files/rss.app new file mode 100644 index 0000000..13ffbca --- /dev/null +++ b/wayland/democompositor/apps/files/rss.app @@ -0,0 +1,8 @@ +{ + "Type": "Application", + "Version": 1, + "Icon": "qrc:/images/Icon_RSS.png", + "Name": "RSS News", + "Exec": "rssnews", + "Path": "./" +} diff --git a/wayland/democompositor/apps/files/stocqt.app b/wayland/democompositor/apps/files/stocqt.app new file mode 100644 index 0000000..9317359 --- /dev/null +++ b/wayland/democompositor/apps/files/stocqt.app @@ -0,0 +1,8 @@ +{ + "Type": "Application", + "Version": 1, + "Icon": "qrc:/images/Icon_StocQt.png", + "Name": "StoQt", + "Exec": "stocqt", + "Path": "./" +} |