Questions tagged [notify-send]
A program to send desktop notifications.
91
questions
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 ...
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 ...
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 ...
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 ...
0
votes
2
answers
688
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, ...
1
vote
1
answer
235
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 ...
1
vote
2
answers
10k
views
notify-send and terminal command
Let's use sudo apt-get install linux as an example.
Here is the notify send command: notify-send -i terminal Bash "execution complete"
How could I substitute 'bash' with the entire sudo ...
3
votes
1
answer
878
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 ...
67
votes
21
answers
43k
views
Notify-send doesn't work from crontab
I made a script that should notify me when there's a new chapter of manga that I'm reading.
I used the command notify-send to do this.
The program works when I am trying to run it in terminal.
The ...
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 ...
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
0
votes
0
answers
68
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 ...
1
vote
0
answers
783
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 ...
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....
8
votes
4
answers
8k
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-...
0
votes
1
answer
618
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 ...
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 ...
1
vote
1
answer
507
views
How can I dismiss a notify-send notification with a keyboard shortcut?
How can I dismiss one of these notifications with a keyboard shortcut?
I am calling it with the notify-send command, although I'd like to to work on all notifications.
0
votes
0
answers
862
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/...
13
votes
2
answers
22k
views
How do I send desktop notifications using Python 3?
I have a python3.4 script.
I would like to send to the desktop a notification.
How do I handle this in python? Can I use notify-send?
I'm using Ubuntu 14.04.
#in my script
if something:
notify-...
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
...
19
votes
1
answer
15k
views
How do I add a custom image to notify-send?
In notify-send I know that -i can be used to add a stock image to the notification, but how can I add my own custom image? I have gone into usr/share/icons/gnome/32x32 where notify-send pulls from, ...
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
...
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 ...
137
votes
5
answers
82k
views
How can I send a custom desktop notification?
I have a custom script and I want to send a desktop notification (the one that appears in the top right corner of the screen) with a custom message. How do I do that?
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 ...
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 ...
13
votes
4
answers
9k
views
Is it possible to cancel or clear a notification created by using notify-send?
So I wrote a little script that makes sure a certain user plugs in a laptop when he logs on (it disables if he doesn't). The script uses notify-send to tell him to plug it in. If he plugs it in, the ...
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 ...
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 ...
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 ...
0
votes
3
answers
3k
views
Can notify-send be used to send pop-up notifications to a Windows X server over ssh?
I'd like my backup script to issue a notification once it's done. I run Ubuntu as a headless server and login into it using PuTTY on Windows. I've already installed x11-apps and verified xclock and ...
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 ...
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-...
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 ...
5
votes
1
answer
963
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'...
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 ...
14
votes
1
answer
12k
views
How to customize the font style in notify-send?
I am trying to change the format of text appearing in pop-up notification while using notify-send command. Here I saw that it can be done using HTML formatting. But that doesn't seem to be working for ...
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 ...
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 ...
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 ...
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 ...
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 ...
8
votes
1
answer
6k
views
notify-send not working on 14.04, but volume and brightness notifications do
I have browsed around here and googled for over an hour, but are no closer to a solution, so here goes.
lets start by killing /usr/lib/x86_64-linux-gnu/notify-osd.
I then do notify-send "foo" and it ...
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 ...
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 "...
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 ...
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?
...
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 ...
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 ...