https://bugs.kde.org/show_bug.cgi?id=436677

            Bug ID: 436677
           Summary: History entries missing
           Product: plasmashell
           Version: 5.21.4
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Notifications
          Assignee: k...@privat.broulik.de
          Reporter: f...@fopen.at
                CC: plasma-b...@kde.org
  Target Milestone: 1.0

SUMMARY

Notifications from Chrome and Firefox are not shown in the notification history
of the applet, even if all settings are enabled. Is there some hard-coded
blacklist? I looked at the sources and have no clue what is wrong.

I caputured the method call with dbus-monitor. See below..


STEPS TO REPRODUCE
1. In the settings enable "Show in history" generally and per application.
In ~/.config/plasmanotifyrc confirm that ShowInHistory=false is *not* set for
e.g. [Applications][google-chrome]. Check that other notifications arrive in
the history, as configured.
2. Receive a notification from google-chrome running MS-teams or Mattermost, or
probably others.


OBSERVED RESULT
The popup appears, but no entry is in the history, after it the popup
disappears.

EXPECTED RESULT
The notification is in the history in the applet.


SOFTWARE/OS VERSIONS
Fedora 34
Plasma 5.21.4

ADDITIONAL INFORMATION

I caputured the dbus method call with dbus-monitor:
method call time=1620286131.648975 sender=:1.207 ->
destination=org.freedesktop.Notifications serial=35
path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications;
member=Notify
   string "Google Chrome"
   uint32 0
   string "file:///tmp/.com.google.Chrome.OqAeVR"
   string "Allgemein"
   string "M hat auf eine Unterhaltung in Allgemein geantwortet, an der Sie
teilnehmen"
   array [
      string "default"
      string "Activate"
      string "settings"
      string "Settings"
   ]
   array [
      dict entry(
         string "urgency"
         variant             uint32 1
      )
      dict entry(
         string "desktop-entry"
         variant             string "google-chrome"
      )
      dict entry(
         string "image_path"
         variant             string "/tmp/.com.google.Chrome.4Y0me0"
      )
      dict entry(
         string "image-path"
         variant             string "/tmp/.com.google.Chrome.4Y0me0"
      )
      dict entry(
         string "x-kde-origin-name"
         variant             string "teams.microsoft.com"
      )
   ]
   int32 25000

I then tried to reproduce such a call with busctl to figure out what the
criteria for the history list are. From dbus point of view it looks virtually
the same, but the following notification shows up in history, and the former
does not!

method call time=1620286512.261841 sender=:1.423 ->
destination=org.freedesktop.Notifications serial=2
path=/org/freedesktop/Notifications; interface=org.freedesktop.Notifications;
member=Notify
   string "Google Chrome"
   uint32 0
   string "file:///tmp/.com.google.Chrome.OqAeVR"
   string "Header"
   string "Do 06 Mai 2021 09:35:12 CEST"
   array [
      string "default"
      string "Activate"
      string "settings"
      string "Settings"
   ]
   array [
      dict entry(
         string "urgency"
         variant             uint32 1
      )
      dict entry(
         string "desktop-entry"
         variant             string "google-chrome"
      )
      dict entry(
         string "x-kde-origin-name"
         variant             string "teams.microsoft.com"
      )
      dict entry(
         string "image_path"
         variant             string "/tmp/.com.google.Chrome.1keGGA"
      )
      dict entry(
         string "image-path"
         variant             string "/tmp/.com.google.Chrome.1keGGA"
      )
   ]
   int32 25000

This produced by:

busctl --user call org.freedesktop.Notifications /org/freedesktop/Notifications
org.freedesktop.Notifications Notify susssasa\{sv\}i  "Google Chrome"  0 
"file:///tmp/.com.google.Chrome.OqAeVR"  "Header"  "$(date)"  4 "default"
"Activate" "settings" "Settings" 5 urgency u 1 desktop-entry s google-chrome
x-kde-origin-name s teams.microsoft.com image_path s
/tmp/.com.google.Chrome.1keGGA image-path s /tmp/.com.google.Chrome.1keGGA
25000

Tell me if I can help!
Thanks,
Florian

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to