Questions tagged [libnotify]

libnotify is a desktop independent library, which provides support for GTK+ and Qt applications, that sends desktop notifications to a notification daemon. These notifications can be used to inform the user about an event or display some form of information without getting in the user's way.

In order to use libnotify, notification server needs to be installed.

Resources:

46 questions
2
votes
0 answers

Get Desktop Notifications On Linux Programmatically

I want to develop a notification daemon with an applet. When an app sends a notification to a user for example Discord. I want to get the notification and show it to the user and store the notifications in the applet. I know how to send…
2
votes
0 answers

Capture Desktiop Notification in Linux

Hi Guys I'm using Fedora 32 Workstation. I wanted to know is there a way to capture desktop Notification using some shell script or python script. I want to keep a log of all the desktop notification. So far I am able to only create notification…
2
votes
0 answers

Is it possible to get terminal notifications in OSX through a docker container?

For instance, libnotify sends file events through a specific port (I don't remember which one). Is it an event send on a specific port? In which case I would guess it would be possible for a linux container to send an event to the host OSX…
Jono
  • 3,393
  • 6
  • 33
  • 48
2
votes
1 answer

Callback not called in pygobject notification action

I'd like to add an action to my Notification with a callback. I'm using pygobject with the following code: import logging from time import sleep import gi gi.require_version('Notify', '0.7') from gi.repository import Notify def callback(*args,…
awelkie
  • 2,422
  • 1
  • 22
  • 32
2
votes
3 answers

Python 3 script using libnotify fails as cron job

I've got a Python 3 script that gets some JSON from a URL, processes it, and notifies me if there's any significant changes to the data I get. I've tried using notify2 and PyGObject's libnotify bindings (gi.repository.Notify) and get similar results…
p0lar_bear
  • 2,203
  • 2
  • 21
  • 31
2
votes
1 answer

Perl - Is there a way to display notifications with some textbox?

Here is my problem : I'm trying to make skype more interactive with my gnome desktop environment. So I want to use Perl to do that. Is there a way, using libnotify, to display a textbox (a field I can fill or type in) ?
Depado
  • 4,811
  • 3
  • 41
  • 63
2
votes
2 answers

notify_notification_new not showing icon

I'm completely stumped. I have this little thing to ease the mounting of MTP units under linux, but for some reason I can't get libnotify to show my icon when using variables. If I hardcode the complete path, it works fine, but when using variables…
tristan202
  • 1,081
  • 3
  • 19
  • 28
2
votes
1 answer

Libnotify not displaying notifications when using Spork and Guard

Libnotify was working fine on my system (Lubuntu) until I started using guard-spork. My Guardfile: notification :libnotify guard 'spork', :wait => 60, :rspec_env => { 'RAILS_ENV' => 'test' } do # ... end guard 'rspec', :version => 2,…
stephenmurdoch
  • 34,024
  • 29
  • 114
  • 189
1
vote
2 answers

pynotify: "closed" signal callback never fired

I'm trying to write a program with pynotify, the Python bindings for libnotify. I want to bring up a critical notification at some point and have it updated every few seconds as information changes, until the user clicks it away. This all works…
tremby
  • 9,541
  • 4
  • 55
  • 74
1
vote
0 answers

notification from c++ privilege daemon process to all users

I have a c++ privileged daemon process which is running as root. Want to send notification to all the desktop users programmatically using libnotify-dev package.How can it be done in cleaner way.
vkg
  • 685
  • 1
  • 8
  • 21
1
vote
1 answer

what are the differences in libnotify dev versus libnotify bin

what is the difference in 2 libraries? Which one is prefered for production apps? Why is there significantly different set of dependencies while installing?
vkg
  • 685
  • 1
  • 8
  • 21
1
vote
1 answer

Add buttons to libnotify notifications that run functions

I need to add buttons to the bottom of a libnotify notification that run functions when clicked. I can make the buttons appear, but they don't run the functions when clicked. It gives no error message at all. The program is called with…
Dragon8oy
  • 15
  • 3
1
vote
1 answer

libnotify notifies the console, not $DISPLAY?

Please note: This is not the similar-sounding FAQ that involves a multi-headed display. This question is about two different computers. If I log onto the console of two different computers, sitting-at.example.com and sshed-into.example.com, and…
dstromberg
  • 6,954
  • 1
  • 26
  • 27
1
vote
1 answer

Twitter browser notifications are unsupported

I can't activate Twitter web notifications on Firefox as you can see on the screenshot below Twitter settings screenshot
holo
  • 331
  • 2
  • 13
1
vote
1 answer

C#: Get values from libnotify c struct

I am trying to access the c libnotify from my c# code to use libnotify on my linux laptop with dotnet core. But everytime there is a problem to get the values from the lib. This is the problematic c code: typedef struct _NotifyNotification…
bittnerd
  • 176
  • 2
  • 8