Closed fiftydinar closed 6 months ago
Edit: I will mark this as ready, this stuff can be implemented in other PR if needed.
I need help on implementing notifications config modifying support in recipe file & in default-flatpaks.sh module. Currently, it just enables notifications by default. It would be good to have this option in recipe file too to be built in a container, not just in post install of the OS in form of just file or similar.
I need help on implementing notifications config modifying support in recipe file & in default-flatpaks.sh module.
Use yq ".notify" "$CONFIG_FILE"
to get the config value from the recipe (should return true
or false
, or something else if there is a configuration error or the key is not specified, in which case it should probably default to true).
Then add this in the example configs right under type:
or at the bottom, whichever you find better. Add a comment like # Send notification after install/uninstall is finished
right next to it.
I need help on implementing notifications config modifying support in recipe file & in default-flatpaks.sh module.
Use
yq ".notify" "$CONFIG_FILE"
to get the config value from the recipe (should returntrue
orfalse
, or something else if there is a configuration error or the key is not specified, in which case it should probably default to true).Then add this in the example configs right under
type:
or at the bottom, whichever you find better. Add a comment like# Send notification after install/uninstall is finished
right next to it.
I hope I did well, since this is the 1st time I work with module sh script.
Fixed
...& uninstalled in notification. Also implement notification enable/disable config support.
Only supports up to 5 flatpak entries (when hovered on mouse), as 6 lines are the limit for the expanded notification on Gnome. Gnome does not support expanded notifications in notification center.
Interestingly, when using Expandable Notifications Gnome extension, it supports up to 16 flatpak entries (17 lines) in notification center when expanded.
I don't know how is the situation on other DE's regarding notifications line support.
Took some idea from myself here: https://github.com/ublue-os/bling/pull/83#discussion_r1432744685