Skip to main content
25 votes

What do a notify-send notification category, hint and version parameters mean?

The manpage (in Debian GNU/Linux) suggest to look at http://www.galago-project.org/specs/notification/. From revision 0.9. Category +-----------------------------------------------------------------...
buhtz's user avatar
  • 875
9 votes
Accepted

notify-send - How to display full message when message is longer than one line?

notify-send works like this: notify-send [OPTION...] <SUMMARY> [BODY] Now, as you only have one (quoted) string, that's being used for the SUMMARY and the BODY is empty. Just use blank or ...
don_crissti's user avatar
  • 83.3k
7 votes

Using notify-send with cron

I use i3 on Ubuntu 18.04. My way to solve this is: * * * * * XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send Hey "this is dog!"
Mr. Goferito's user avatar
7 votes

Using notify-send with cron

This one-liner worked for me in Manjaro with Cronie: # Note: "1000" would be your user id, the output of... "id -u <username>" 10 * * * * pj DISPLAY=:0 ...
Jay Brunet's user avatar
5 votes
Accepted

Arch linux: Notifications not working in i3wm - dunst: CRITICAL: Cannot open X11 display

Instead of installing dunst as a service, add it to your i3 config: Edit ~/.config/i3/config and add: exec --no-startup-id dunst
laktak's user avatar
  • 6,014
5 votes
Accepted

libotify / notify-send: body text is not printed if it contains '<' or '>'

The notification spec says that body can include simple markup, so any tags inside "<...>" will be removed and interpreted if possible. For example, "<b>hello</b>" will show the word in ...
meuh's user avatar
  • 51.9k
4 votes
Accepted

libnotify with bash and grep

This page explains grep and output buffering, in short you want to use the --line-buffered flag: tail -f /var/log/mylogfile | grep --line-buffered ">" | while read line; do notify-send "CURRENT ...
madeddie's user avatar
  • 713
3 votes
Accepted

systemd service not executing the python script

Edited to add: Your program tries to access the graphical desktop of a user (pi), however, it is itself executed by systemd. That is, it will run as root per default and not as the user pi. Moreover, ...
akraf's user avatar
  • 887
2 votes
Accepted

How do notifications work on linux?

What is a notification server, and what does it serve? In general terminology, a server is a program that clients connect to in some way (whether over network or over local IPC mechanisms). The ...
u1686_grawity's user avatar
2 votes
Accepted

Install libnotify development package

On elementary OS and other Debian-based distributions such as Ubuntu and Linux Mint, the package is libnotify-dev. Generally, to compile a program that uses the XXX library, you need the package ...
Jodka Lemon's user avatar
  • 3,183
1 vote

Arch linux: Notifications not working in i3wm - dunst: CRITICAL: Cannot open X11 display

Because of the Warning: That basically just means that systemd is trying to start the dunst notification daemon (small program that runs in your user desktop session, listening to libnotify based ...
Armin's user avatar
  • 32
1 vote

Arch linux: Notifications not working in i3wm - dunst: CRITICAL: Cannot open X11 display

from: https://wiki.archlinux.org/index.php/Dunst#Installation Installation Install the dunst package. An example configuration file is included at /usr/share/dunst/dunstrc. Copy this file to ~/....
Ipor Sircer's user avatar
  • 14.6k
1 vote
Accepted

`notification-daemon` completely absent although libnotify installed

The notification daemon is available in its own package, notification-daemon.
Stephen Kitt's user avatar
1 vote
Accepted

What are the differences/(dis)advantages of zenity vs notify-send?

Functionality comparison zenity --notification is equivalent to notify-send for the most simple cases. For example, these two commands are equivalent: $ zenity --notification --text=Title $ notify-...
Francesco Potortì's user avatar
1 vote
Accepted

dbus-laauch failed caused by the child process exited

I find the answer from here. Update Pidgin IM status on Ubuntu using cron cron run in its own environment, therefore, we have to find the variables DBUS_SESSION_BUS_ADDRESS, XAUTHORITY, and DISPLAY. ...
user1532868's user avatar
1 vote

notify-send/notification-daemon: disable tray icon

For what it's worth, I had the opposite request. I wanted the list of notifications to show up. Turns out the default in lxde (or maybe ubuntu) is notify-osd, which doesn't show this icon or the ...
David Dombrowsky's user avatar
1 vote

notify-send not working under ssh

IMO, may be you could use: ssh user@host 'export DISPLAY=:0 && notify-send "test message"' This of course assuming ":0" is the real value of the DISPLAY variable, if it is the only user ...
Marco A. Rodriguez G.'s user avatar
1 vote

Using notify-send with cron

In my case, the issue was with using root user with notify-send. I realized this when I saw that sudo notify-send didn't work on the terminal but just notify-send (i.e. with current user) did. So ...
abcoep's user avatar
  • 111
1 vote

Using notify-send with cron

Use printenv for print environment variables from your normal terminal. And then paste all environment variables in starting of crontab file.
Monu's user avatar
  • 155
1 vote

Using notify-send with cron

You could also make a script: #!/usr/bin/env bash runuser -l [yourusername] -c 'DISPLAY=:0 notify-send "hey there user"' Then run it with sudo. However, since crontab -e runs all commands with the ...
user1112789's user avatar
1 vote

Using notify-send with cron

For those on Linux who are comfortable installing Python packages, I just released a notify-send-headless program which is working well for me. It searches /proc for the required username and ...
xolox's user avatar
  • 780

Only top scored, non community-wiki answers of a minimum length are eligible