emersion / mako

A lightweight Wayland notification daemon
https://wayland.emersion.fr/mako
MIT License
2.17k stars 137 forks source link

Mako cannot play sound if started automatically #519

Closed mastermach50 closed 4 months ago

mastermach50 commented 4 months ago

If mako is started automatically due to dbus activation, then it cannot use exec mpv <filename> to play a sound on notification.

This can be solved on the user end by manually starting mako via the window manager or some other means

System

WM: Hyprland (latest git version as of writing this)
OS: NixOS 23.11
emersion commented 4 months ago

Why can't MPV work in this situation?

mastermach50 commented 4 months ago

Why can't MPV work in this situation?

Not sure, the only difference between the processes is that the parent of mako is sh if started by Hyprland and systemd if started by dbus activation

emersion commented 4 months ago

Going to close this as mako can't do anything differently here. Problem is likely somewhere else in the stack.

mastermach50 commented 4 months ago

It is some sort of "wayland cannot share stuff between processes" kid of thing

There are several weird behaviors if I start 2 sessions of Hyprland,

emersion commented 4 months ago

I don't think it's related to Wayland at all. Note, by default there is only a single D-Bus session bus, one would need to create another one explicitly when starting a second session.

mastermach50 commented 4 months ago

Then maybe pipewire? I am using pipewire with wireplumber