Mobian libnotify custom notifications
#1
I want my app to make use of custom made symbolic icons for notifications using libnotify; where should I put my icons? are svgs okay? wb a particular naming scheme?
Any help's appreciated!
  Reply
#2
/usr/share/icons/hicolor/scalable/status/ (for SVGs – for PNGs, use, e.g., 32x32 instead of scalable for a 32×32 PNG).
  Reply
#3
I put it there, this is how I'm trying to spawn the notification:

notify-send "My Waydroid Manager" "Done!" --icon=my-waydroid-manager-notify

the file is called my-waydroid-manager-notify.svg
I'm still getting a 'missing icon' icon in the notifications Sad
  Reply
#4
So, for anyone wondering, I figured it out, the proper way of doing this is:

notify-send -i /path/to/your/scalable/icon/example_notification_icon.svg "Name Of App" "This is the notifications body!"
  Reply
#5
If you install an icon to the systemwide hicolor theme, you need to run gtk-update-icon-cache for GTK to pick up the new icon. This is normally done in packages' post-installation scripts, see your distribution's (i.e., Mobian's in this case) packaging guidelines.

Using an absolute path to the icon works, but is not the recommended way to do things because it means the icon is not themable.
  Reply
#6
(08-01-2023, 07:27 AM)Kevin Kofler Wrote: If you install an icon to the systemwide hicolor theme, you need to run gtk-update-icon-cache for GTK to pick up the new icon. This is normally done in packages' post-installation scripts, see your distribution's (i.e., Mobian's in this case) packaging guidelines.

Using an absolute path to the icon works, but is not the recommended way to do things because it means the icon is not themable.

Good to know for the future, but in this case is the right move.
The icon is already designed to conform to the Gnome HIG, and doesn't need theming ootb.

(08-01-2023, 07:27 AM)Kevin Kofler Wrote: If you install an icon to the systemwide hicolor theme, you need to run gtk-update-icon-cache for GTK to pick up the new icon. This is normally done in packages' post-installation scripts, see your distribution's (i.e., Mobian's in this case) packaging guidelines.

Using an absolute path to the icon works, but is not the recommended way to do things because it means the icon is not themable.

The only official package I plan to support long-term as stated on the repo, are flatpaks,
volunteers are welcome to make pull requests for other distributions support, but I am one woman, and I'm gonna aim at what ik I can hit for now.
I'll worry abt more *officially supported* distributions if maintaining a flatpak turns out to be easy enough.
In general like many (most?) gtk4 / libadwaita app devs, I don't support theming ootb.
I plan to get light / dark theming taken care of for libadwaita and that is it.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Megapixels on Mobian Bookworm on PinePhone Pro - Not Launching X0X0X0X0X0 3 1,193 10-28-2024, 10:46 AM
Last Post: Jite
  July 1 upgrade of Mobian Bookworm boot loops. mburns 5 1,166 10-26-2024, 05:17 AM
Last Post: mburns
  bookworm vs trixie discussion for mobian in pinephone pro. zetabeta 16 4,865 04-28-2024, 01:52 AM
Last Post: diederik
  Disable the GDM service in Mobian. mburns 0 698 11-25-2023, 10:19 PM
Last Post: mburns
  The Mobian Phosh Experience mburns 1 1,378 11-18-2023, 08:21 AM
Last Post: crocspot
  Fix the Mobian Weather App mburns 0 741 11-07-2023, 10:01 AM
Last Post: mburns
  Mobian Phosh Gnome Software Is Recommending A Broken Update. mburns 0 838 10-14-2023, 11:57 AM
Last Post: mburns
  Mobian .desktop file creation MadameMalady 15 5,510 07-27-2023, 04:12 PM
Last Post: MadameMalady
  XFCE mobian running nicely but some oddities grump_fiddle_reinstall 0 1,028 07-01-2023, 08:18 AM
Last Post: grump_fiddle_reinstall
  [Mobian] : Battery consumption and OS compatibility freelectro 2 1,504 06-02-2023, 06:55 AM
Last Post: Fred Zyphal

Forum Jump:


Users browsing this thread: 1 Guest(s)