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

Andreas Bontozoglou <a.bontozog...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a.bontozog...@gmail.com

--- Comment #4 from Andreas Bontozoglou <a.bontozog...@gmail.com> ---
So, reading a bit the source code here:

- Both saveResourceMimetype and saveResourceTitle call insertResourceInfo and
then do an update
- None of them have the "if" to check config
- Both are also used as slots (linked to Resources signals)
- Both have a callpath that leads to addEvent: detectResourceInfo <-
openResourceEvent <- addEvents which is protected based on user settings

So, _I think_ that the only way mimeType and title can leak is if the slot is
called directly. However, these seem to be connected to the `m_resources`
signals (Resources class) which in turn seem to only be exposed in dbus
`kactivitymanagerd/src/common/dbus/org.kde.ActivityManager.Resources.xml` and
not called anywhere directly.


What I do see though is that StatsPlugin has:

```
    enum WhatToRemember {
        AllApplications = 0,
        SpecificApplications = 1,
        NoApplications = 2,
    };
```

but when I set the settings to "Do not remember" the config has:

```
$ grep what ~/.config/kactivitymanagerd-pluginsrc
what-to-remember=1
```

Similarly, when I set the setting to "Only for specific applications" I get:

```
$ grep what ~/.config/kactivitymanagerd-pluginsrc
what-to-remember=2
```

The values look flipped to me! I am struggling to locate the code that updates
this config (lost somewhere in
https://invent.kde.org/plasma/plasma-desktop/-/tree/master/kcms/recentFiles).
Can anyone point me to where kactivitymanagerd-pluginsrc is written?

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

Reply via email to