diff --git a/mu4e/meson.build b/mu4e/meson.build index 9934de27..836dae26 100644 --- a/mu4e/meson.build +++ b/mu4e/meson.build @@ -27,7 +27,8 @@ mu4e_meta = configure_file( 'VERSION' : meson.project_version(), 'MU_VERSION_EXTRA' : version_extra, 'MU_DOC_DIR' : datadir / 'doc' / 'mu', - }) + 'MU_ICON_PATH' : muiconpath +}) mu4e_pkg_desc = configure_file( input: 'mu4e-pkg.el.in', diff --git a/mu4e/mu4e-config.el.in b/mu4e/mu4e-config.el.in index 7c36d31c..d32d752f 100644 --- a/mu4e/mu4e-config.el.in +++ b/mu4e/mu4e-config.el.in @@ -1,8 +1,27 @@ ;;; mu4e-config.el --- configuration values -*- lexical-binding: t -*- -;;; Commentary: +;; Copyright (C) 2023-2026 Dirk-Jan C. Binnema -;; Auto-generated configuration values +;; Author: Dirk-Jan C. Binnema +;; Maintainer: Dirk-Jan C. Binnema + +;; SPDX-License-Identifier: GPL-3.0-or-later + +;; mu4e is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; mu4e is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with mu4e. If not, see . + +;;; Commentary: +;;; Generic support for showing new-mail notifications. ;;; Code: @@ -13,5 +32,8 @@ mu4e's version must agree with this.") (defconst mu4e-doc-dir "@MU_DOC_DIR@" "Directory for mu4e documentation.") +(defconst mu4e-icon-path "@MU_ICON_PATH@" + "Path to the mu/mu4e icon.") + (provide 'mu4e-config) ;;; mu4e-config.el.in ends here diff --git a/mu4e/mu4e-notification.el b/mu4e/mu4e-notification.el index 83bce829..0145e563 100644 --- a/mu4e/mu4e-notification.el +++ b/mu4e/mu4e-notification.el @@ -1,6 +1,6 @@ ;;; mu4e-notification.el --- Mail notifications -*- lexical-binding: t-*- -;; Copyright (C) 2023-2025 Dirk-Jan C. Binnema +;; Copyright (C) 2023-2026 Dirk-Jan C. Binnema ;; Author: Dirk-Jan C. Binnema ;; Maintainer: Dirk-Jan C. Binnema @@ -110,10 +110,7 @@ support." :body body :app-name "mu4e@emacs" :replaces-id mu4e--notification-id - ;; a custom mu4e icon would be nice... - ;; :app-icon (ignore-errors - ;; (image-search-load-path - ;; "gnus/gnus.png")) + :app-icon mu4e-icon-path :actions '("Show" "Favorite bookmark" "default" "Favorite bookmark") :on-action (lambda (_1 _2) (mu4e-jump-to-favorite)))))