bash: notify-send: command not found
- Login o registrati per inviare commenti
I used to send notification and alert on Ubuntu by command 'notify-send' and 'alert'. But now I left ubuntu and Started with Trisquel 7.0 LTS!
But I found that command is not working:-
$ alert bash: notify-send: command not found $ notify-send bash: notify-send: command not found
Thus it may some package is not installed:-
$ dpkg -s notify-send
dpkg-query: package 'notify-send' is not installed and no information is available
And I am surprised to see that 'alert' as alias for 'notify-send' still exist but 'notify-send' is not found!
$ alias | head
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
So, Why 'notify-send' is not found (is there any issue with freedom?)? (if not) Then Which package I've to install for 'notify-send'?
OR Is there any other/alternative method to send notification like 'notify-send' without installing any extra package? (don't suggest 'zenity --info' or any dialogbox)
[BTW 'gnome-font-viewer' is also removed from ubuntu to trisquel]
"Why 'notify-send' is not found"
You seem to be assuming that the package will be called notify-send. Not all packages are named for the commands inside it.
When I go http://packages.trisquel.info/ and use the search option to find "packages that contain files named like this" I find that /usr/bin/notify-send is in the package called libnotify-bin. So that is the package name. Ta Da.
OK. I installed 'libnotify-bin' and now 'notify-send' is working. But without this (or any extra)) package is there any method to send desktop notification?
There might be some method because we are getting notification for connection status of internet like : "modem network is connected", "disconnected", "Hplip printer job strated/completed" etc. So, How can I send such notification by default? In other words which method they use?
Install the "libnotify-bin" package and you will get the 'notify-send' command. I have just tested it. It works on GNOME Shell at least.
EDIT: I should not have tested to post before jxself! :-)
- Login o registrati per inviare commenti