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
1
vote
0 answers

lua-lgi libnotify add_action callback not being called

I followed the hello world example on this page to set up lua-lgi and libnotify, successfully getting a notification that looks and acts the samea s if using os.execute("notify-send..."). Notify-send does not allow user actions, from what I've…
Incognito
  • 189
  • 2
  • 10
1
vote
1 answer

Segfault with C function notify_notification_update()

Simply enough, I'm having an issue where I'm getting a segfault when calling a libnotify function. Erroring code: int lua_libnotify_new(lua_State *L) { const char *summary = luaL_checkstring(L, 1); const char *body = lua_isstring(L, 2) ?…
RyanSquared
  • 138
  • 1
  • 5
1
vote
1 answer

Python os.exec(): Termination on running 'notify-send'

I'm writing a small Python script under Linux that pops up a number of libnotify pop-ups, currently by using the following syntax: import os os.execv('/usr/bin/notify-send', ['App Title', 'Message']) Unfortunately, and for some strange reason, it…
Raceimaztion
  • 9,494
  • 4
  • 26
  • 41
0
votes
1 answer

Yocto fetcher failure for libnotify

I'm trying to build a Yocto receipe that depends on libnotify. When it attempts to build libnotify I get a fetcher error: "ERROR: libnotify-0.7.8-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.',…
0
votes
1 answer

Simple libnotify "hello world" program fails to compile on Ubuntu 20.04 with linker error

I'm probably missing something very basic here but for some reason I'm unable to successfully link against libnotify on my Ubuntu 20.04 system, even though everything is installed correctly and pkg-cfg (IMHO) returns the right options... any ideas…
Tobias Gierke
  • 392
  • 1
  • 9
0
votes
1 answer

How do I only clear one notification message using Notify and python?

I have a written a small python script that uses notifications to alert the user when something happens. The script is run on either a cinnamon or gnome based desktop environment. The nitty-gritty of the script is this: from gi.repository import…
user1464409
  • 1,032
  • 5
  • 18
  • 31
0
votes
0 answers

Interprocess notification replacement using dbus-python

I'm trying to set up notifications for brightness controls that are replaced immediately when a new notification is sent. I've managed to create a test to get this working within the same python process/script but if a new process is run the…
sharktamer
  • 126
  • 9
0
votes
1 answer

Cannot get a notification icon with libnotify

I put a 256x256 icon into ~/.local/share/icons/hicolor/scalable/status/foo.png. Then I tried (in Python3) import notify2 notify2.init("a") notification = notify2.Notification( "a" "b, "foo") notification.show() Now the icon is not…
marmistrz
  • 5,974
  • 10
  • 42
  • 94
0
votes
0 answers

Which Destop notifier does daemons like net manager use in linux?

I am trying to show notification messages from my desktop background application using notify-send command. But I came to know that it won't work across the users i.e I am running my daemon as a root user and notify-send is not showing any…
Ravi
  • 986
  • 12
  • 18
0
votes
3 answers

Bash commands not executed when through cron job - PHP

I have a cron job running a PHP script every five minutes; the PHP script executes two bash commands at the end of the script. I know the script is running due to a log file it appends to. When I run the PHP script manually via the Ubuntu Gnome…
basicxman
  • 2,095
  • 14
  • 21
0
votes
1 answer

guard cannot find libnotify nor cannot disable notifications but throw errors

guard was running fine, until out of the blue, it throws me these bunch of errors: $bin/guard Could not open library 'libgtkmm-2.4': libgtkmm-2.4: cannot open shared object file: No such file or directory. Could not open library 'libgtkmm-2.4.so':…
user3995789
  • 3,452
  • 1
  • 19
  • 35
0
votes
1 answer

Exporting a Dbus Object

Why wont the object export? from dbus.mainloop.glib import DBusGMainLoop as glib_main from gi.repository import GLib import dbus.service as Service import dbus as DBus import pymongo as Mgo class Emitter(object): __signals__ = {} def…
Christopher
  • 639
  • 1
  • 6
  • 14
0
votes
1 answer

python gi.repository Notify and new line "\n"

I'm not able to display a new line in 'gi.repository Notification'. It works when i use string constant within a program, but fails when i read string from configuration file using ConfigParser class. test.ini [NOTIFICATIONS] test1 =…
user2772570
  • 25
  • 1
  • 3
0
votes
1 answer

Volume Control Notification Ubuntu

I am using PyQT for making Gui , in which i am controlling volume through button i am using amixer command line tool to increase and decrease the volume ,Can i also show the default notification come when user increase or decrease volume ? I am…
Uahmed
  • 1,847
  • 5
  • 29
  • 45
0
votes
2 answers

Could not find gem 'ffi' when run simple rails template

I'm getting error when try run my recept: and run following commands: $> rails _3.2.8_ new demo_app -T $> cd demo_app $> rake rails:template LOCATION=https://raw.github.com/gist/3752746/a259f4307b65493f4b7043bd78f30efa3ba6191e/test.rb Recept is…
itsnikolay
  • 17,415
  • 4
  • 65
  • 64