diff options
Diffstat (limited to 'meta/recipes-sato')
3 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb b/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb index 5d781ae2fe..53e15d3550 100644 --- a/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb +++ b/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb | |||
@@ -37,6 +37,7 @@ RDEPENDS_${PN}-base = "\ | |||
37 | sato-icon-theme \ | 37 | sato-icon-theme \ |
38 | settings-daemon \ | 38 | settings-daemon \ |
39 | gtk-sato-engine \ | 39 | gtk-sato-engine \ |
40 | shutdown-desktop \ | ||
40 | libsdl \ | 41 | libsdl \ |
41 | ${NETWORK_MANAGER} \ | 42 | ${NETWORK_MANAGER} \ |
42 | " | 43 | " |
diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb new file mode 100644 index 0000000000..d0f507e673 --- /dev/null +++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop.bb | |||
@@ -0,0 +1,20 @@ | |||
1 | SUMMARY = "Provides an icon to shut down the system cleanly" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ | ||
4 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | |||
6 | SRC_URI = "file://shutdown.desktop" | ||
7 | |||
8 | S = "${WORKDIR}" | ||
9 | |||
10 | do_install() { | ||
11 | install -d ${D}${datadir}/applications | ||
12 | install -m 0644 shutdown.desktop ${D}${datadir}/applications/ | ||
13 | } | ||
14 | |||
15 | pkg_postinst_${PN} () { | ||
16 | grep -q qemuarm $D${sysconfdir}/hostname && \ | ||
17 | sed -i $D${datadir}/applications/shutdown.desktop -e 's/^Exec=halt/Exec=reboot/' | ||
18 | } | ||
19 | |||
20 | inherit allarch | ||
diff --git a/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop b/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop new file mode 100644 index 0000000000..272688922c --- /dev/null +++ b/meta/recipes-sato/shutdown-desktop/shutdown-desktop/shutdown.desktop | |||
@@ -0,0 +1,10 @@ | |||
1 | [Desktop Entry] | ||
2 | Encoding=UTF-8 | ||
3 | Type=Application | ||
4 | Name=Shutdown | ||
5 | Comment=Close down the machine safely | ||
6 | Exec=halt | ||
7 | Icon=system-shutdown | ||
8 | Terminal=false | ||
9 | Categories=Utility; | ||
10 | StartupNotify=true \ No newline at end of file | ||