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 23A1B1381F3 for ; Thu, 11 Jul 2013 05:12:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75015E0946; Thu, 11 Jul 2013 05:12:36 +0000 (UTC) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F9E1E086E for ; Thu, 11 Jul 2013 05:12:35 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so17367711iec.13 for ; Wed, 10 Jul 2013 22:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OQPDyWGC2U4HbmI32v3hEsx+odVfMC7F9lqtz1n2CD0=; b=OcaedPzlAih/fI2ld0jYshO8V/c5XQW32LTtX2JfrHTbkgoaoiCUr0lzpVZKk1RLkf AMtrgKWRYG1/3o/ws5JallKYxor2+mljEfJHiDLQNrayDcVkfEodCqtM5h8dZLI/D7Be c//T3BPnlPWKi4421B7IzlDtCbbiCvYN+Hq3L8lRlHRBfXvygVYrEGUDWL4mTjr3g6Pl LfZxfKB8KpDDOLoxcSyxFzQYXHff7L+1bAsLxauEJ38/NV87/klK42yJV/EKBua64K5o 7tKy/elPUb5qxyc17erAFILcngJwTqILUJD0/2fHcv1f1Pu+pTgzR1h4cDHTRjacZZ6b z7Mw== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.50.117.38 with SMTP id kb6mr12552194igb.57.1373519554519; Wed, 10 Jul 2013 22:12:34 -0700 (PDT) Received: by 10.50.14.129 with HTTP; Wed, 10 Jul 2013 22:12:34 -0700 (PDT) In-Reply-To: <20130709165430.GC24522@syscon7.inet> References: <20130709165430.GC24522@syscon7.inet> Date: Thu, 11 Jul 2013 13:12:34 +0800 Message-ID: Subject: Re: [gentoo-user] pop up windows with text message From: Mark David Dumlao To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 X-Archives-Salt: f94e8318-3157-44ea-92e3-d5de1454d1f2 X-Archives-Hash: 6a80f8fb09f8495847ac60c0d26e70c5 Btw, rather than directly opening a terminal window, you may want to use the notify-send api / command line to do your popup. That way it gets rendered natively by your desktop of choice, and you don't have to fuss about searching which DISPLAY variable X is running on. You can do something like notify-send --app-name=foo --icon=icon-name-in-usr-share-icons-without-the-path-and-extension --urgency=normal|critical --expire-time=milliseconds "TITLE" "LONGTEXT" On Wed, Jul 10, 2013 at 12:54 AM, Joseph wrote: > How to design a sticky note pop-up when file is present? > > I would like to check if file is present via and open a terminal window with > a simple message. > I think a simple bash script and a cron job would do the trick or is there a > better solution? > > I've tried cron + bash script > > cron: > 32 10 * * * sh /home/joseph/xp_share/wall.sh > > wall.sh > terminal > wall file ready > > When I open terminal and type: "terminal" new windows pops up > But if close all the terminals and run wall.sh script the terminal will not > open. > I get an error message: (terminal:24945): Gtk-WARNING **: cannot open > display: > > -- > Joseph > -- This email is: [ ] actionable [ ] fyi [ ] social Response needed: [ ] yes [ ] up to you [ ] no Time-sensitive: [ ] immediate [ ] soon [ ] none