From 477b8e482242db57d9ada3a8c3b2c69c27126ea5 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Tue, 7 Dec 2021 19:16:00 +0100 Subject: [PATCH] wayland: add .desktop file for weston-terminal weston-terminal is already installed as part of the weston installation. However, it doesn't provide a way to be easily discovered. This commit creates a .desktop file following the "Desktop entry specification" so this application can be discovered by a compliant application launcher. Bug-AGL: SPEC-4161 Signed-off-by: Arnaud Ferraris Change-Id: I9c413645ed0bd4371c7d18977304ef6f1a5a2be7 --- recipes-graphics/wayland/weston-terminal-conf.bb | 20 ++++++++++++++++++++ .../weston-terminal-conf/weston-terminal.desktop | 11 +++++++++++ .../packagegroup-agl-graphical-weston_agldemo.inc | 1 + 3 files changed, 32 insertions(+) create mode 100644 recipes-graphics/wayland/weston-terminal-conf.bb create mode 100644 recipes-graphics/wayland/weston-terminal-conf/weston-terminal.desktop diff --git a/recipes-graphics/wayland/weston-terminal-conf.bb b/recipes-graphics/wayland/weston-terminal-conf.bb new file mode 100644 index 000000000..4bf864f42 --- /dev/null +++ b/recipes-graphics/wayland/weston-terminal-conf.bb @@ -0,0 +1,20 @@ +SUMMARY = "AGL user session" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +SRC_URI = " \ + file://weston-terminal.desktop \ +" + +inherit allarch + +do_install() { + install -d ${D}${datadir}/applications + install -m 0644 ${WORKDIR}/weston-terminal.desktop ${D}${datadir}/applications +} + +FILES:${PN} = "${datadir}/applications" + +RDEPENDS:${PN} = " \ + weston \ +" diff --git a/recipes-graphics/wayland/weston-terminal-conf/weston-terminal.desktop b/recipes-graphics/wayland/weston-terminal-conf/weston-terminal.desktop new file mode 100644 index 000000000..6c4628700 --- /dev/null +++ b/recipes-graphics/wayland/weston-terminal-conf/weston-terminal.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=Weston Terminal +Comment=Terminal Emulator +GenericName=Terminal Emulator +Exec=weston-terminal +Icon=utilities-terminal +Terminal=false +Type=Application +Categories=System;TerminalEmulator; +StartupNotify=true diff --git a/recipes-platform/packagegroups/packagegroup-agl-graphical-weston_agldemo.inc b/recipes-platform/packagegroups/packagegroup-agl-graphical-weston_agldemo.inc index 7db76c6d3..9c2feca4a 100644 --- a/recipes-platform/packagegroups/packagegroup-agl-graphical-weston_agldemo.inc +++ b/recipes-platform/packagegroups/packagegroup-agl-graphical-weston_agldemo.inc @@ -2,4 +2,5 @@ RDEPENDS:${PN}_remove = "weston-init" RDEPENDS:${PN} += " \ agl-compositor \ + weston-terminal-conf \ " -- 2.16.6