alphapapa / alphapapa/ement.el

Use :transient desktop notifications

Abierto
#183 8 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement good first issue help wanted
Lenguaje dominante
Emacs Lisp
Estrellas
604
Forks
54
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I'm using the following to enforce transience in all cases, but I think `ement-notify--notifications-notify` should either be doing this by default, or else that it should be a user option.

In my case it's as much a Gnome problem as anything else (it has a hard-coded limit for the number of persistent notifications after which subsequent notifications are rejected with an error), but my feeling is that transient would be a sane default for ement because it provides its own log buffer for persistent notifications.

```el
;; Notifications -- force transience.
;; Otherwise I need to regularly run 'gnome-panel', purge its
;; notifications, and then kill 'gnome-panel' again.
(define-advice notifications-notify (:filter-args (params) transient)
"Force freedesktop notifications to be transient.

Advice for `notifications-notify'. To remove:
\(advice-remove \\='notifications-notify \\='notifications-notify@transient)"
(plist-put params :transient t))
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.