[Gambas-user] Gio icon, GIcon serialized for DesktopPortal Notify?
BB
adamnt42 at gmail.com
Sun Nov 26 00:52:51 CET 2023
Er, no. What does a call to
DBus["org.freedesktop.Notifications"]["/org/freedesktop/Notifications","org.freedesktop.Notifications"].GetServerInformation()
give?
Notifications are a session item, i.e. user specifies which notification
daemon they want to use (or the system default). This is the program
that draws the popups, not the dbus daemon that sends the messages. For
e.g. I use dunst coz I like it better than the system default. I can
display icons with dunst but they need to be in the shared system icon
directory, I cant display arbitrarily located images because dunst cant
handle that.
b
p.s. here GetServerInformation() gives "dunst", "knopwob", "1.5.0
(2020-07-23)", "1.2"
On 26/11/23 9:48 am, Bruce Steers wrote:
> Er I think Desktop Portal
> DBus["session://org.freedesktop.portal.Desktop"]["/org/freedesktop/portal/desktop",
> "org.freedesktop.portal.Notification"].AddNotification(Application.Id,
> cNotification)
>
> I've attached the currently simple wip class with tester project.
> Works pretty well on MATE, closing and reopening for the Wait is
> barely noticeable,
> not so great with Gnome shell and plasma
>
> But according to desktop portal docs i should be able to add an icon
> but is got to be some weird serialized GIcon thing.
>
> Respects
> BruceS
>
>
> On Sat, 25 Nov 2023 at 22:53, BB <adamnt42 at gmail.com
> <mailto:adamnt42 at gmail.com>> wrote:
>
> Which notification daemon?
>
> b
>
> On 26/11/23 2:41 am, Bruce Steers wrote:
>> I'm using gb.dbus and desktop portal Notify
>>
>> I want to add an image.
>> docs say i need a serialized GThemedIcon or GBytesIcon
>> https://docs.gtk.org/gio/method.Icon.serialize.html
>> <https://docs.gtk.org/gio/method.Icon.serialize.html>
>> https://www.manpagez.com/html/gio/gio-2.44.1/GBytesIcon.php
>> <https://www.manpagez.com/html/gio/gio-2.44.1/GBytesIcon.php>
>> https://developer-old.gnome.org/gio/stable/GThemedIcon.html#g-themed-icon-new
>> <https://developer-old.gnome.org/gio/stable/GThemedIcon.html#g-themed-icon-new>
>>
>> Does gambas do GIcon or anything from Gio library?
>>
>> Will i need Extern library calls?
>>
>> Has anyone managed to add an image to dbus notification?
>>
>> Thanks in advance
>> BruceS
>>
>>
>> ----[http://gambaswiki.org/wiki/doc/netiquette <http://gambaswiki.org/wiki/doc/netiquette> ]----
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette
> <http://gambaswiki.org/wiki/doc/netiquette> ]----
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231126/61c10d7a/attachment.htm>
More information about the User
mailing list