Questions tagged [notify-send]

A program to send desktop notifications.

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

Low urgency alerts from notify-send never appear

The man page for notify-send says that the urgency level can be low, normal, or critical: -u, --urgency=LEVEL Specifies the urgency level (low, normal, critical). However, while normal and ...
TRiG's user avatar
  • 1,910
2 votes
1 answer
309 views

"notify-send" not running with "rclone" ( when used in a startup script )

I'm trying to run the following script at startup. I am able to see the notification only when I execute the script from the terminal, or when I run it as a program. So the issue is basically when run ...
Anima94's user avatar
  • 23
1 vote
1 answer
111 views

Notify-send scripted to several other ubuntu's distros

I start to wonder if it's possible to make a script to send notifications once to several other Ubuntus, i must say that not all the computers have the same Distro, having MATE XUbunutu LUbuntu and ...
Damaso.jpg's user avatar
1 vote
1 answer
233 views

Unable to run notify-send from cronjob

In my Kubuntu 22.04, a script run by my crontab uses notify-send. However, it doesn't work: there is no pop-up appearing. If I redirect the output (stderr in particular) of the script to a file, this ...
BowPark's user avatar
  • 929
3 votes
1 answer
17k views

Why do I get GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown with notify-send?

When attempting to display any notification with notify-send I get: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service ...
John Smith's user avatar
3 votes
1 answer
875 views

notify-send giving syntax error with my custom Python file in 22.04

When I run a simple .py file with code notify-send " ha ha " I get notifications in 22.04 without any issues. Then I tried the following code in another .py file. And it is giving a syntax ...
user227495's user avatar
  • 4,089
0 votes
0 answers
1k 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 ...
jumbuck's user avatar
  • 31
0 votes
0 answers
67 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 ...
psycho9o's user avatar
0 votes
2 answers
687 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, ...
Andrew DeFaria's user avatar
1 vote
0 answers
782 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 ...
Atanimo Develop's user avatar
1 vote
2 answers
196 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....
kurokirasama's user avatar
0 votes
1 answer
617 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 ...
tatyana's user avatar
0 votes
0 answers
861 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/...
John Dale's user avatar
3 votes
0 answers
349 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 ...
John Dale's user avatar
0 votes
0 answers
90 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 ...
Aman Turate's user avatar
1 vote
2 answers
2k 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 ...
Aman Turate's user avatar
2 votes
0 answers
927 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 ...
kwsp's user avatar
  • 2,089
1 vote
1 answer
701 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 ...
4n3wv's user avatar
  • 67
0 votes
0 answers
863 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 ...
Muhammad Ali Khan's user avatar
2 votes
0 answers
68 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 ...
WinEunuuchs2Unix's user avatar
3 votes
1 answer
1k 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 ...
wjandrea's user avatar
  • 14.2k
1 vote
1 answer
821 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 ...
Angular Orbit's user avatar
1 vote
1 answer
116 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-...
Mateo Gutierrez's user avatar
5 votes
1 answer
962 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'...
Rafael Muynarsk's user avatar
1 vote
0 answers
500 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 ...
Fat Mind's user avatar
  • 2,445
3 votes
1 answer
437 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 ...
Chud37's 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 ...
M. Zeeshan's user avatar
3 votes
1 answer
1k 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 ...
Kalle Elmér's user avatar
  • 8,318
1 vote
0 answers
101 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 ...
yukashima huksay's user avatar
2 votes
1 answer
2k 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 ...
Chillar Anand's user avatar
2 votes
0 answers
185 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 ...
vladkras's user avatar
  • 139
6 votes
2 answers
5k 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
membersound's user avatar
  • 1,410
1 vote
0 answers
579 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? ...
serii 's user avatar
  • 21
0 votes
1 answer
158 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 ...
lapisdecor's user avatar
  • 1,627
2 votes
0 answers
57 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 ...
Nati V's user avatar
  • 131
1 vote
0 answers
36 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,...
Surabhi K's 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 ...
Dennis.Z's user avatar
3 votes
1 answer
892 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 ...
Vu TrongNghia's user avatar
0 votes
1 answer
82 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 ...
842Mono's user avatar
  • 9,790
3 votes
1 answer
2k 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 ...
DMT's user avatar
  • 824
0 votes
1 answer
291 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 ...
chikadance's user avatar
1 vote
1 answer
852 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 ...
Chip Thrasher's 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 "...
cosmicraga's user avatar
3 votes
1 answer
943 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 ...
Paritosh's user avatar
  • 133
2 votes
1 answer
1k 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.
Artyom's user avatar
  • 1,723
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 ...
aco's user avatar
  • 51
1 vote
1 answer
7k 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
621 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 ...
penta's user avatar
  • 354
3 votes
1 answer
1k 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 ...
jonasstaehle's user avatar
0 votes
2 answers
3k 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 ...
Michal Polovka's user avatar