summaryrefslogtreecommitdiffstats
path: root/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'wayland')
-rw-r--r--wayland/democompositor/apps/README20
-rw-r--r--wayland/democompositor/apps/files/clock.app8
-rw-r--r--wayland/democompositor/apps/files/maps.app8
-rw-r--r--wayland/democompositor/apps/files/rss.app8
-rw-r--r--wayland/democompositor/apps/files/stocqt.app8
-rw-r--r--wayland/democompositor/democompositor.pro6
6 files changed, 57 insertions, 1 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": "./"
+}
diff --git a/wayland/democompositor/democompositor.pro b/wayland/democompositor/democompositor.pro
index 99b6f93..cbed99f 100644
--- a/wayland/democompositor/democompositor.pro
+++ b/wayland/democompositor/democompositor.pro
@@ -17,5 +17,9 @@ RESOURCES += democompositor.qrc
HEADERS += \
processlauncher.h
-INSTALLS += target
+INSTALLS += target apps
target.path = /data/user/$$TARGET
+
+# TODO. How does /data/user/$$TARGET map to QStandardPaths
+apps.path = /data/user/$$TARGET/apps/
+apps.files = apps/files/*.app