BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] cron notifications to GUI front end
- Subject: [Discuss] cron notifications to GUI front end
- From: dsr at randomstring.org (Dan Ritter)
- Date: Thu, 28 Mar 2019 11:52:33 -0400
- In-reply-to: <CAEvgogE-q-nSnwR_dFNwAxc-sUrjkTwNEaxQrfF2Ev6f3-Xdog@mail.gmail.com>
- References: <CAEvgogE-q-nSnwR_dFNwAxc-sUrjkTwNEaxQrfF2Ev6f3-Xdog@mail.gmail.com>
Jerry Feldman wrote: > I have a crontab task to shutdown my system at a specific time each > evening. Shutdown notifications come to terminal windows that are open. > However, When I am logged in and using Atom and Glade to work with some > code, I miss the notification and the system shuts down. What I would like > to do is to write a small GUI GTK3 task pop up in my face so I can stop the > shutdown. One possibility is to write a startup task when I log in. So, I > am looking at ideas. sudo -u gaf DISPLAY=:0 \ DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/gaf/bus \ notify-send 'SYSTEM SHUTDOWN' \ 'Gonna shut down the system Real Soon Now' See if that works for you. -dsr-
- References:
- [Discuss] cron notifications to GUI front end
- From: gaf.linux at gmail.com (Jerry Feldman)
- [Discuss] cron notifications to GUI front end
- Prev by Date: [Discuss] cron notifications to GUI front end
- Next by Date: [Discuss] cron notifications to GUI front end
- Previous by thread: [Discuss] cron notifications to GUI front end
- Next by thread: [Discuss] cron notifications to GUI front end
- Index(es):