Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question?] Notification doesn't seems passed to host machine #727

Closed
benyaminl opened this issue Apr 29, 2023 · 1 comment
Closed

[Question?] Notification doesn't seems passed to host machine #727

benyaminl opened this issue Apr 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@benyaminl
Copy link

benyaminl commented Apr 29, 2023

Hello, I just want to ask, does notification from the app container, really doesn't passed to the host machine. Is it the limitation or just hasn't implemented yet?

I'm on Fedora 38 XFCE Spin, backed with xfce4-notifyd.

I do check https://www.reddit.com/r/archlinux/comments/9z81hr/firefox_no_longer_using_libnotify_for_push/

And run dbus-send --session --dest=org.freedesktop.DBus --type=method_call \ --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames

Firefox and Dbus is listed, notifyd is listed, and org.freedesktop.Notifications also listed. The question is why it doesn't use the notification :/

[ben@arch ~]$ dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames
method return time=1682794074.785343 sender=org.freedesktop.DBus -> destination=:1.597 serial=4294967295 reply_serial=2
   array [
      string "org.freedesktop.DBus"
      string ":1.1"
      string ":1.2"
      string ":1.5"
      string ":1.6"
      string ":1.7"
      string ":1.24"
      string ":1.25"
      string ":1.26"
      string ":1.27"
      string ":1.29"
      string ":1.30"
      string ":1.31"
      string ":1.32"
      string ":1.33"
      string ":1.34"
      string ":1.35"
      string ":1.37"
      string ":1.38"
      string ":1.39"
      string ":1.40"
      string ":1.41"
      string ":1.42"
      string ":1.44"
      string ":1.48"
      string ":1.49"
      string ":1.50"
      string ":1.52"
      string ":1.54"
      string ":1.58"
      string ":1.59"
      string ":1.60"
      string ":1.61"
      string ":1.62"
      string ":1.63"
      string ":1.64"
      string ":1.65"
      string ":1.66"
      string ":1.67"
      string ":1.68"
      string ":1.69"
      string ":1.70"
      string ":1.71"
      string ":1.72"
      string ":1.74"
      string ":1.75"
      string ":1.76"
      string ":1.77"
      string ":1.78"
      string ":1.79"
      string ":1.80"
      string ":1.81"
      string ":1.82"
      string ":1.83"
      string ":1.84"
      string ":1.85"
      string ":1.91"
      string ":1.92"
      string ":1.126"
      string ":1.127"
      string ":1.128"
      string ":1.129"
      string ":1.140"
      string ":1.160"
      string ":1.164"
      string ":1.460"
      string ":1.486"
      string ":1.526"
      string ":1.576"
      string ":1.578"
      string ":1.579"
      string ":1.581"
      string ":1.595"
      string ":1.597"
      string "ca.desrt.dconf"
      string "com.canonical.AppMenu.Registrar"
      string "com.redhat.imsettings"
      string "org.a11y.Bus"
      string "org.ayatana.bamf"
      string "org.freedesktop.FileManager1"
      string "org.freedesktop.Flatpak"
      string "org.freedesktop.IBus"
      string "org.freedesktop.IBus.Panel.Extension.Gtk3"
      string "org.freedesktop.Notifications"
      string "org.freedesktop.PowerManagement"
      string "org.freedesktop.ReserveDevice1.Audio0"
      string "org.freedesktop.Tracker3.Miner.Files"
      string "org.freedesktop.Tracker3.Miner.RSS"
      string "org.freedesktop.impl.portal.PermissionStore"
      string "org.freedesktop.impl.portal.desktop.gtk"
      string "org.freedesktop.network-manager-applet"
      string "org.freedesktop.portal.Desktop"
      string "org.freedesktop.portal.Documents"
      string "org.freedesktop.portal.IBus"
      string "org.freedesktop.problems.applet"
      string "org.freedesktop.secrets"
      string "org.freedesktop.systemd1"
      string "org.gnome.keyring"
      string "org.gtk.vfs.AfcVolumeMonitor"
      string "org.gtk.vfs.Daemon"
      string "org.gtk.vfs.GPhoto2VolumeMonitor"
      string "org.gtk.vfs.MTPVolumeMonitor"
      string "org.gtk.vfs.Metadata"
      string "org.gtk.vfs.UDisks2VolumeMonitor"
      string "org.gtk.vfs.mountpoint_11741"
      string "org.gtk.vfs.mountpoint_3166"
      string "org.gtk.vfs.mountpoint_dnssd"
      string "org.kde.StatusNotifierWatcher"
      string "org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNl"
      string "org.pulseaudio.Server"
      string "org.valapanel.AppMenu.Registrar"
      string "org.x.sticky"
      string "org.xfce.Appfinder"
      string "org.xfce.FileManager"
      string "org.xfce.Notifyd"
      string "org.xfce.Panel"
      string "org.xfce.PowerManager"
      string "org.xfce.ScreenSaver"
      string "org.xfce.SessionManager"
      string "org.xfce.SettingsDaemon"
      string "org.xfce.Terminal5"
      string "org.xfce.Thunar"
      string "org.xfce.Xfconf"
      string "org.xfce.clipman"
      string "org.xfce.xfdesktop"
   ]

On the Hosts :

[ben@TP-X220 ~]$ dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames
method return time=1682794301.777428 sender=org.freedesktop.DBus -> destination=:1.600 serial=4294967295 reply_serial=2
   array [
      string "org.freedesktop.DBus"
      string ":1.1"
      string ":1.2"
      string ":1.5"
      string ":1.6"
      string ":1.7"
      string ":1.24"
      string ":1.25"
      string ":1.26"
      string ":1.27"
      string ":1.29"
      string ":1.30"
      string ":1.31"
      string ":1.32"
      string ":1.33"
      string ":1.34"
      string ":1.35"
      string ":1.37"
      string ":1.38"
      string ":1.39"
      string ":1.40"
      string ":1.41"
      string ":1.42"
      string ":1.44"
      string ":1.48"
      string ":1.49"
      string ":1.50"
      string ":1.52"
      string ":1.54"
      string ":1.58"
      string ":1.59"
      string ":1.60"
      string ":1.61"
      string ":1.62"
      string ":1.63"
      string ":1.64"
      string ":1.65"
      string ":1.66"
      string ":1.67"
      string ":1.68"
      string ":1.69"
      string ":1.70"
      string ":1.71"
      string ":1.72"
      string ":1.74"
      string ":1.75"
      string ":1.76"
      string ":1.77"
      string ":1.78"
      string ":1.79"
      string ":1.80"
      string ":1.81"
      string ":1.82"
      string ":1.83"
      string ":1.84"
      string ":1.85"
      string ":1.91"
      string ":1.92"
      string ":1.126"
      string ":1.127"
      string ":1.128"
      string ":1.129"
      string ":1.140"
      string ":1.160"
      string ":1.164"
      string ":1.460"
      string ":1.486"
      string ":1.526"
      string ":1.576"
      string ":1.578"
      string ":1.579"
      string ":1.581"
      string ":1.595"
      string ":1.600"
      string "ca.desrt.dconf"
      string "com.canonical.AppMenu.Registrar"
      string "com.redhat.imsettings"
      string "org.a11y.Bus"
      string "org.ayatana.bamf"
      string "org.freedesktop.FileManager1"
      string "org.freedesktop.Flatpak"
      string "org.freedesktop.IBus"
      string "org.freedesktop.IBus.Panel.Extension.Gtk3"
      string "org.freedesktop.Notifications"
      string "org.freedesktop.PowerManagement"
      string "org.freedesktop.ReserveDevice1.Audio0"
      string "org.freedesktop.Tracker3.Miner.Files"
      string "org.freedesktop.Tracker3.Miner.RSS"
      string "org.freedesktop.impl.portal.PermissionStore"
      string "org.freedesktop.impl.portal.desktop.gtk"
      string "org.freedesktop.network-manager-applet"
      string "org.freedesktop.portal.Desktop"
      string "org.freedesktop.portal.Documents"
      string "org.freedesktop.portal.IBus"
      string "org.freedesktop.problems.applet"
      string "org.freedesktop.secrets"
      string "org.freedesktop.systemd1"
      string "org.gnome.keyring"
      string "org.gtk.vfs.AfcVolumeMonitor"
      string "org.gtk.vfs.Daemon"
      string "org.gtk.vfs.GPhoto2VolumeMonitor"
      string "org.gtk.vfs.MTPVolumeMonitor"
      string "org.gtk.vfs.Metadata"
      string "org.gtk.vfs.UDisks2VolumeMonitor"
      string "org.gtk.vfs.mountpoint_11741"
      string "org.gtk.vfs.mountpoint_3166"
      string "org.gtk.vfs.mountpoint_dnssd"
      string "org.kde.StatusNotifierWatcher"
      string "org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNl"
      string "org.pulseaudio.Server"
      string "org.valapanel.AppMenu.Registrar"
      string "org.x.sticky"
      string "org.xfce.Appfinder"
      string "org.xfce.FileManager"
      string "org.xfce.Notifyd"
      string "org.xfce.Panel"
      string "org.xfce.PowerManager"
      string "org.xfce.ScreenSaver"
      string "org.xfce.SessionManager"
      string "org.xfce.SettingsDaemon"
      string "org.xfce.Terminal5"
      string "org.xfce.Thunar"
      string "org.xfce.Xfconf"
      string "org.xfce.clipman"
      string "org.xfce.xfdesktop"
   ]

I use Arch distro to use app-globalmenu firefox, just I can't mute the notification because firefox doesn't detect the notification system backend, and fallback to Firefox own notification. It's quite distracting to see chat notification shown even with DnD enabled.

Any pointer is appreciated. Thank you

@benyaminl benyaminl added the bug Something isn't working label Apr 29, 2023
@benyaminl
Copy link
Author

Ah... it doesn't have libnotify installed in arch cause this. Nvm...

Related script https://gist.github.com/rbreaves/293d72e162e9d5e8c5e40d5263dc6d28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant