Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [notify-send]

A program to send desktop notifications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

Notify-send messages from cron jobs in 22.04

Trying to send notify-send messages from cron jobs. I've tried all the methods in the old questions and answers but nothing works. Maybe this has something to do with Wayland. Any current solutions ...
user avatar
0 votes
0 answers
23 views

Opening a file with "less" causes notify-send to send a message

In my development environment, we have some helper scripts that wrap certain commands (like maven or docker), and then use notify-send to send a notification if the commands fail. After running a ...
user avatar
0 votes
1 answer
96 views

notify-send works for a little while after logging in then stops working

Notify-send (also zenity --notification --text "") stops working after logging in. Not sure how long it takes to fail but it starts failing silently in that no notification is put up. Sorry, ...
user avatar
1 vote
0 answers
107 views

Send SMS / alerts to my iPhone when wrong password is entered on login screen

I hope this question haven’t asked till today. My question is that there is a chance that I can connect the main login screen (that one when you’re lock your computer / once you’re turning you’re ...
user avatar
0 votes
2 answers
126 views

I can't keep a bash script alive

I found and slightly modify the following script, that monitor the notify-send notifications and dump them in a file. #!/bin/bash logfile=$1 dbus-monitor "interface='org.freedesktop....
user avatar
0 votes
0 answers
10 views

Chrome's share to device feature broken when sending multiples items on Ubuntu 18.04 and 20.04 (works on 16.04)

I am using Chrome's share to device feature to send a web page from Android chrome to chrome on Ubuntu. When I send a single item, it works fine. When I send multiple items to Ubuntu 16.04, it works ...
user avatar
  • 101
0 votes
1 answer
131 views

Notify-send doesn't work from ROOT crontab

This script works fine in user's crontab, but I need run from ROOT crontab, but not work: #!/bin/sh # cron.sh # Notifies the user of date and time source /home/user/.bashrc pid=$(pgrep -u user ...
user avatar
0 votes
0 answers
369 views

notify-send doesn't work in systemd service

#!/bin/bash /usr/bin/notify-send 'lol' #function check_state () { #toggle_toggle=$(/usr/bin/amixer get Capture | grep -c "\[off\]") #echo toggle+percent #toggle_percent=$(/usr/...
user avatar
3 votes
0 answers
228 views

How to make 'notify-send' work in a script that is ran by NetworkManager dispatcher?

Code: #!/bin/bash sleep 2 DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION XDG_RUNTIME_DIR=/run/user/$(id -u) DISPLAY=:0.0 notify-send "Connecting..." Also tried: #!/usr/bin/env bash sleep 2 ...
user avatar
0 votes
0 answers
61 views

notify-send not working in dhclient dispatcher script

I am detecting IP assigned by dhclient and trying to show it using notify-send. I have made a script and placed it in /etc/dhcp/dhclient-exit-hooks.d. Content of the script is as below #!/bin/bash ...
user avatar
1 vote
2 answers
968 views

notify-send not working

I am working on Ubuntu 18.04 and trying to use notify-send via terminal, but nothing happens. It gets stuck for some time and that's it. Can someone please suggest a solution? In syslog, it is showing ...
user avatar
2 votes
0 answers
581 views

Customise notification popups [duplicate]

Some of my applications show notification messages in this style: Even when I'm running Ubuntu Gnome (as opposed to i3wm), a few apps show notifications in this style instead of going to Gnome's ...
user avatar
  • 1,629
1 vote
1 answer
368 views

Clean up output of a command to pipe to notify-send

Ubuntu 18.04 ExpressVPN has no GUI or icon for the Linux version. So I put together a .desktop files that and then added clickable buttons on my taskbar to trigger them. The .desktop files trigger ...
user avatar
  • 67
0 votes
0 answers
497 views

notify-send infinite notification

I made a short script to notify myself when my battery is below 25% and above 75%. I'm using notify-send to send notifications and play alert sound as to notify the user of the event. The problem I'm ...
user avatar
2 votes
0 answers
55 views

Pop up bubble messages for boot related issues

I was looking at one of my apps today and wondered if it actually worked to get today's sunrise and sunset times. Conky displays them as 8:46am and 4:36pm respectively but they could be yesterday's ...
user avatar
3 votes
1 answer
767 views

How do I make notifications that don't get saved?

Some scripts I wrote show notifications like "Volume up" or "Reset brightness" for example, using notify-send. However, the notifications get saved in the notification menu on Ubuntu 18.04, which I ...
user avatar
  • 13.4k
1 vote
1 answer
702 views

Crontab not running task [duplicate]

I did crontab -e then added */2 * * * * /usr/bin/notify-send "test", which is supposed to send a notification every 2 minutes, but it's not working. The crontab file looks like this. # Edit this ...
user avatar
1 vote
1 answer
114 views

Check for running proccess constantly

I need to check whenever a process is running and alert if the process dies, is stopped or closes. I have used pgrep and processName and then alert, like this: pgrep processName && notifiy-...
user avatar
4 votes
1 answer
529 views

Is it possible to permanently show notifications on my screen?

With the command notify-send, it's possible to show a notification on screen for a small amount of time. But I'd like to have a specific notification on my screen for an undetermined amount of time. I'...
user avatar
1 vote
0 answers
475 views

limits of notify-send in ubuntu 18.04

before 18.04 i used to have the following command that shows the last 10 lines of a file in notification notify-send -u critical "test" -t 7000 $(tail -10 /tmp/Follow-test) in Ubuntu 18.04 it shows ...
user avatar
  • 2,365
3 votes
1 answer
408 views

Command with notify-send and rhythmbox-client works, but when I assign a keyboard shortcut for it rhythmbox-client won't start

I am trying to get the following shortcut to work: notify-send -i rhythmbox "RhythmBox Is Playing" "$(rhythmbox-client --print-playing)" It works fine If I run it from the command line, but when I ...
user avatar
  • 201
5 votes
1 answer
2k views

Display terminal command result in Desktop notification

I need to display the result of a terminal command in notification. Notifications can be triggered by running: notify-send "Notification message" The command I have is: sudo /opt/lampp/xampp ...
user avatar
2 votes
1 answer
965 views

Send notification from systemd daemon

I know that I can send a notification to the user that will appear in the top-right corner of the screen an disappear on its own, like this: notify-send "Device detected correctly" However, this ...
user avatar
  • 5,658
1 vote
0 answers
99 views

What are the named Icons in Ubuntu? [duplicate]

I see that I can run: notify-send -u low -i terminal "yo" and notify-send -u low -i error "yo" But I couldn't find any mentions of the icon names "terminal" and "error" in the man page. How can ...
user avatar
2 votes
1 answer
1k views

notify-send shows a dialog box instead of notification?

I am trying to send a simple notification with notify-send "Linux" And nothing shows up. However notify-send "Linux" -t 0 shows a dialog box like this How can I make notify-send to send a ...
user avatar
2 votes
0 answers
172 views

Who is sending to notify-send?

After reinstalling some drivers, I am receiving a lot of annoying empty messages to my notify-send every 30 sec - 5 min. # dbus-monitor "interface='org.freedesktop.Notifications'" outputs method ...
user avatar
  • 139
5 votes
2 answers
4k views

How can I show notify-send messages triggered by crontab? [duplicate]

test.sh: /usr/bin/notify-send "test" The following works: bash ~/Documents/test.sh BUT the crontab never shows the notification. Why? */1 * * * * bash ~/Documents/test.sh
user avatar
  • 1,130
1 vote
0 answers
569 views

Why don't work notify-send from terminal?

Ubuntu 16.04, notify 0.7.6 I tried notify-send "something", and this doesn't work. But notify-send -u critical "test" worked. Why this happened? I install notify-daemon, but this doesn't help me? ...
user avatar
  • 11
0 votes
1 answer
107 views

What is needed to use notify-send in a snap? [duplicate]

I use notify-send in a python program, and I'm trying to make a snap of that program. The snap builds but I get a No such file or directory 'notify-send' What package do I need to install to make ...
user avatar
  • 1,607
2 votes
0 answers
56 views

View full text of long notification bubble [duplicate]

I use npm tool of laravel called mix, to transform JS ES6 to ES5 When there is error during transformation the npm tool popups system message (Like when I connect to Wifi etc..) Now the message is ...
user avatar
  • 131
1 vote
0 answers
34 views

notify-send not working from cron [duplicate]

* * * * * export DISPLAY=:0.0 && usr/bin/notify-send "Hello world!" I added the above command to the crontab, notify-send is working from terminal but not from the cron. Also checked the logs,...
user avatar
2 votes
1 answer
1k views

Ubuntu 16.04 - udev rules and notify-send

I am currently working on a mini project for which I need to set up a udev rule that sends a notification to the desktop when an external storage drive is plugged into the machine. This notification ...
user avatar
3 votes
1 answer
438 views

What is the command to kill/close notifications? [duplicate]

By default, I have to wait for a few seconds for the notifications to fade off. I'd like to know the command to kill them immediately, so I can bind it to a shortcut key. (Super+N seems good right ...
user avatar
0 votes
1 answer
75 views

Send all notifyOSD messages to another ubuntu on the network

I want an ubuntu to send a copy of all its notifyOSD messages to another ubuntu on the network. Preferably with a little "addition" to the title that specifies the host name of the ubuntu that ...
user avatar
  • 8,700
3 votes
1 answer
1k views

Show notify-send content in Gnome's lockscreen

I'm searching for a way to show the content of a notify-send message in the lockscreen of Gnome 3.20. Normally this is configured under settings > notifications, but "notify-send" isn't mentioned ...
user avatar
  • 784
0 votes
1 answer
262 views

sudo -u username notify-send stuck

here is my code: roroco@roroco ~/Dropbox/rbs/ro_wemedia $ time sudo -u root notify-send 'prpr' real 0m0.033s user 0m0.008s sys 0m0.012s roroco@roroco ~/Dropbox/rbs/ro_wemedia $ time sudo -u ...
user avatar
1 vote
1 answer
351 views

Automatically notify when IP changes?

Is there a way I can send a notification to myself when the local DHCP IP changes? Can I use libnotify? I use Xubuntu. Below is a screenshot that shows what the notification looks like, can I design ...
user avatar
2 votes
1 answer
2k views

crontab + notify-send + Ubuntu 16.04 [duplicate]

In my Ubuntu 16.04 , 64 bit OS, I tried the following * * * * * export DISPLAY=:0.0 && notify-send Hey "How are you" And * * * * * export DISPLAY=:0.0 && /usr/bin/notify-send Hey "...
user avatar
2 votes
1 answer
779 views

Showing notification in Ubuntu based installs

I am (trying) to write a simple python script for ubuntu based OS. As part of script, a notification is also shown. Now, I have gone through a number of posts over here but with each one I have an ...
user avatar
  • 123
1 vote
1 answer
822 views

How to make Ubuntu to show a notification when there is a btrfs checksum failure?

Like aa-notify, which shows a notification on my desktop when AppArmor denies something.
user avatar
  • 1,603
3 votes
2 answers
2k views

notify-send only works with sudo

Problem sudo notify-send Test "Hello World" Displays a notification as expected. notify-send Test "Hello World" Does not display a notification. Further information Ubuntu version 16.04. The ...
user avatar
  • 51
1 vote
1 answer
6k views

How to monitor syslog and get alerted when there is a certain entry?

There is a certain error which is always the same and I am getting in syslog, however I am not really sure what the error is being caused by so I would like to get alerted immediately whenever it ...
user avatar
1 vote
0 answers
520 views

notify-send not showing popup message

I have a script which executes on certain conditions, whenever I manually execute the script, the popup appears, however if i try to aumotate the script(i.e. run the script right after system is ...
user avatar
  • 344
3 votes
1 answer
952 views

notify-send not showing notification when playing video

I have a script (which is called on keyboard button press) that instantly shows a notification with notify-send and then does some other things. It works perfectly, except in the following cases it ...
user avatar
0 votes
2 answers
2k views

Setting DISPLAY=:0 has no effect to notify-send via ssh

I have ssh access to my flatmate's computer (Ubuntu 14.04). I want to send her a message via ssh, thus I use this command export DISPLAY=:0 && notify-send "sample message" The command exits ...
user avatar
11 votes
1 answer
5k views

How can I log all notify-send actions?

I keep getting very strange notifications which go away before I can read them, they are long, and appear at random times, the most recently one came up was during a kernel upgrade, it had a strange ...
user avatar
16 votes
2 answers
2k views

Is there a "don't disturb" option to temporarily hide notifications, like on macbooks?

Does there exist "Don't disturb mode" as is does for OSX device, where you can decided when notification can bother you, or not.. I just installed chrome, and I usually get spammed by group texts ...
user avatar
  • 283
2 votes
3 answers
700 views

'persistent' notification on ubuntu touch

On ubuntu touch, one can do a 'temporary' notification via 'notify-send'. When I do that it will display a notification for 5 seconds. After that it is gone, and any trace it was ever there with it. ...
user avatar
  • 63
6 votes
1 answer
6k views

How to use notify-send with C++?

I'm a C++ beginner coder. I'm trying to understand how to send notifications using libnotify-bin library. I've read some guys saying don't to use system calls. Any clue?
user avatar
6 votes
4 answers
6k views

How can I use the notify-send command in combination with the Calcurse calendar?

I use the calendar and scheduling application calcurse. This is a fine command-line program. For example, with calcurse -a you can display the events for the day. How i can send this info to notify-...
user avatar
  • 128