From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D2343138206 for ; Mon, 23 Sep 2013 15:30:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92637E0ACF; Mon, 23 Sep 2013 15:30:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8402E0ACA for ; Mon, 23 Sep 2013 15:30:27 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0889833ED7A for ; Mon, 23 Sep 2013 15:30:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id B86B0E5463 for ; Mon, 23 Sep 2013 15:30:24 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1379946140.67c6a9d4fb817284a61b0155d5964beb85001987.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: files/hooks/ X-VCS-Repository: proj/R_overlay X-VCS-Files: files/hooks/notify-desktop.sh X-VCS-Directories: files/hooks/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 67c6a9d4fb817284a61b0155d5964beb85001987 X-VCS-Branch: master Date: Mon, 23 Sep 2013 15:30:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ba3c506e-b0f2-4a38-be1d-4022f0f94280 X-Archives-Hash: 279de83aa16655f6bcca3abcc26c7192 commit: 67c6a9d4fb817284a61b0155d5964beb85001987 Author: André Erdmann mailerd de> AuthorDate: Mon Sep 23 14:22:20 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Mon Sep 23 14:22:20 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=67c6a9d4 files/hooks: notify-desktop Uses notify-send to signalize that roverlay is done. --- files/hooks/notify-desktop.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/files/hooks/notify-desktop.sh b/files/hooks/notify-desktop.sh new file mode 100644 index 0000000..9184c2f --- /dev/null +++ b/files/hooks/notify-desktop.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# -*- coding: utf-8 -*- +# +# Sends a desktop notification. +# +set -u + +## load core functions +. "${FUNCTIONS?}" || exit +#dont_run_as_root + +## load helper functions +#$lf ... + +# hook body starts here + +# roverlay's hook environment doesn't pass $DISPLAY, set it here +: ${DISPLAY:=:0.0} +export DISPLAY +run_command_logged notify-send -t 10000 roverlay "done" || true