Sabe aquelas notificações que geralmente aparecem no GNOME? Proooonto, quer saber como enviar uma notificação dessas? Vou mostrar
Antes de mais nada você deverá ter instalado os pacotes: notify-osd e libnotify-bin. O pacote notify-osd já está instalado no ubuntu:
[krix@rogue]$ dpkg -l | grep -i notify ii libnotify1 0.5.0-2ubuntu1 sends desktop notifications to a notification daemon ii notify-osd 0.9.29-0ubuntu3 daemon that displays passive pop-up notifications ii notify-osd-icons 0.6 Notify-OSD icons ii python-notify 0.1.1-2build3 Python bindings for libnotify ii python-pyinotify 0.8.9-1ubuntu3 simple Linux inotify Python bindings |
Então precisa somente instalar o pacote libnotify-bin.
[krix@rogue]# apt-get install libnotify-bin |
Agora é só brincar:
[krix@rogue]$ notify-send "Krix Apolinário" |
Existem outras opções para este comando e você pode ver todas elas aqui: Ubuntu Manpage – notify-send.
Ótimo final de semana para todos