Mako: Difference between revisions

From Alpine Linux
(added wikipage for mako)
 
(removed the user service as it is not officialy packaged)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://github.com/emersion/mako Mako] is a lightweight notification daemon for [[Wayland]] that works with [[Sway]].
{{DISPLAYTITLE:mako}}
[https://github.com/emersion/mako mako] is a lightweight notification daemon for [[Wayland]].
 
== Prerequisites ==
 
* Mako requires [[D-Bus#D-Bus_session|D-Bus session bus]].


== Installation ==
== Installation ==


Installation the {{pkg|mako}} package as per command: {{# apk add mako}}
Install the {{pkg|mako}} package as per command: {{cmd|# apk add mako}}
 
== Troubleshooting ==
 
=== org.freedesktop.DBus.Error.NoReply ===


== Configuration ==
{{ic|GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying}}


To configure mako as [[OpenRC#User services|User service in OpenRC]], an executable file {{Path|~.config/rc/init.d/org.freedesktop.Notifications}} has to be created with the following content {{Cat|~.config/rc/init.d/org.freedesktop.Notifications|<nowiki>#!/sbin/openrc-run
To resolve the above error, if you are using <code>dbus-run-session</code> wrapper to launch sway, set D-Bus variables by adding the following line to sway [[Sway#Sway config file|config]] file:
exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway


description="org.freedesktop.Notifications"
=== Failed to acquire service name ===


command="/usr/bin/mako"
<Pre>daemon.err mako: Failed to acquire service name: File exists
daemon.err mako: Is a notification daemon already running?</Pre>
{{Todo|The above message appears in {{Path|/var/log/messages}} randomly, but no cause is found yet. Please update here, if reason and resolution is found. Earlier attempts at naming the mako service executable file as {{ic|org.freedesktop.Notifications}} did not make any difference.}}


supervisor=supervise-daemon
== See also ==
error_logger="logger -t '${RC_SVCNAME}' -p daemon.error"


depends() {
* [https://github.com/emersion/mako/wiki mako wiki]
use dbus
}</nowiki>}}


Follow the steps outlined in [[OpenRC#User services|User service in OpenRC]], if not already done. Finally, add the service for mako as follows: {{Cmd|$ rc-update add --user org.freedesktop.Notifications gui}}
[[Category:System Administration]]

Latest revision as of 03:25, 6 August 2025

mako is a lightweight notification daemon for Wayland.

Prerequisites

Installation

Install the mako package as per command:

# apk add mako

Troubleshooting

org.freedesktop.DBus.Error.NoReply

GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying

To resolve the above error, if you are using dbus-run-session wrapper to launch sway, set D-Bus variables by adding the following line to sway config file:

exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway

Failed to acquire service name

daemon.err mako: Failed to acquire service name: File exists
daemon.err mako: Is a notification daemon already running?
Todo: The above message appears in /var/log/messages randomly, but no cause is found yet. Please update here, if reason and resolution is found. Earlier attempts at naming the mako service executable file as org.freedesktop.Notifications did not make any difference.


See also