Questions tagged [notify-send]
34 questions
1
vote
2 answers
Running bash script from crontab
I am having difficulty running the below simple script from crontab:
#!/bin/bash
notify-send "battery.sh working"
The permissions of the file are rwxr-xr-x and its running fine with either of the commands bash battery.sh and sh battery.sh.
In my…

arpanmangal
- 1,770
- 1
- 17
- 34
0
votes
0 answers
notify-send do not work in a new conda environment
I can use notify-send to display messages in the base conda environment
When I create a new conda environment, notify-send do not working in the new env (base env is still work). When I type notify-send 'message', nothing pops up, and no error is…

zochzh
- 11
- 2
0
votes
0 answers
Error attaching icon when sending notify-send to Linux from Pycharm
I want to send notify-send with icon to Linux from Python, but when I do it from PyCharm's Terminal or from subprocess.run(command, shell=True) with Python, I get an empty icon instead of my icon.
It works when I run it from Linux (being in the same…

Lagrange
- 1
- 1
0
votes
0 answers
systemd script for notify-send fails with error "The connection is closed"
I am trying to run a systemd timer. I am posting all the relevant files and the error below. I have posted the nodejs file but I tried with a simple shell script as well as explained in the Edit…

Rounak Jain
- 409
- 1
- 5
- 18
0
votes
1 answer
Battery reminder POSIX script having issues with DBUS
I wrote a POSIX shell script to remind me about my battery life using notify-send and a cronjob, but I'm having problems with DBUS stuff
This is what the script looks like
#!/bin/sh
percent=`upower -i /org/freedesktop/UPower/devices/battery_BAT0 |…

octo-
- 1
0
votes
0 answers
Scan system PATH for executable file
Python 3 has the very useful shutil.which (https://docs.python.org/3/library/shutil.html#shutil.which) function. Is there an equivalent for Scala?
For context, I want to run a shell command in scala to get a notification to the user. For example, in…

bobismijnnaam
- 1,361
- 2
- 10
- 20
0
votes
0 answers
status_format for email sender in neomutt
I am using Neomutt, and I want to display notifications whenever new mail comes in the inbox. I used the new_mail_command to send a notification via notify-send. But I also want to include the sender's address in the notification. Is there any way…

weirdsmiley
- 317
- 1
- 4
- 12
0
votes
1 answer
How to get notify working for the split toggle command for i3wm?
I have this command:
bindsym $mod+q split toggle
This will toggle between hsplit and vsplit. My individual vsplit and hsplit (activated using $mod+v and $mod+h respectively) are:
bindsym $mod+h split h; exec notify-send 'tile horizontally'
bindsym…

mle0312
- 365
- 5
- 17
0
votes
0 answers
notify-send terminates after Chinese characters
In trying to generate a notification with notify-send i am noticing that inputting a Chinese character seems to terminate the notification.
I am trying to achieve a multi-line notification and can do so in normal text using
notify-send "Heading"…

FinleyGibson
- 911
- 5
- 18
0
votes
1 answer
`notify-send` works when invoking script manually, but not from a crontab
I wanted my cron job to report to me on desktop when it executes, through notify-send command on Ubuntu. I've read through the common problems that stated a shell script didn't have access to a display, which is solved by adding this before calling…

Digital Ninja
- 3,415
- 5
- 26
- 51
0
votes
2 answers
notify-send command issue in shell script
I have a text file b.txt with the following text:
notify-send -i gtk-info "How Are You" -h
string:x-canonical-private-synchronous:anything
I have a shell script with the following code:
#!/bin/sh
while true;
do if [ -s b.txt ]
then
value="$(cat…

node_man
- 1,359
- 4
- 23
- 50
0
votes
1 answer
The command of 'notify-send' does not work in supervisor
My Operating System is Manjora17.1.12, the Python version is 3.7.0, and the Supervisor's version is 3.3.4.
I have a python script, it just shows a notification. The code is:
import os
os.system('notify-send hello')
The supervisor config is…

zonzely
- 395
- 3
- 6
- 17
0
votes
2 answers
how to run 2 lines on in bash side by side
I am new to Bash and I am trying to have this script notify me when I am connected and disconnected to my VPN.
The problem I have is when I run my "openvpn" it will stop listening to the rest of the lines that follow so I had to put my "connected"…

L0val
- 47
- 6
0
votes
3 answers
notify-send doesn't work over SSH
I want to use PC A to send a notification to PC B via SSH, but I didn't see the notification on B.
ssh user_name@B_ip 'notify-send hello'
I also tried this: Use SSH on B to login A and then login B back and then send a notification. However it…

chaosink
- 1,329
- 13
- 27
0
votes
0 answers
Ubuntu - Notification and sound
I try to get a notification + sound everyday at 16PM.
It's work but after that, i lost sound. I have to restart my computer.
The cron:
00 16 * * * /bin/bash /home/user/mynotifications.sh
mynotifications.sh:
#!/bin/sh
/usr/bin/spd-say "Hey, it's 16…

yoanm
- 66
- 9