Bug 447559 - The "Activities" context menu is not updated after linking/unlinking a file to an activity
Summary: The "Activities" context menu is not updated after linking/unlinking a file t...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Activities in general (other bugs)
Version First Reported In: 5.24.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-27 02:11 UTC by Fushan Wen
Modified: 2024-12-17 21:39 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fushan Wen 2021-12-27 02:11:02 UTC
SUMMARY
After linking/unlinking a file to an activity, the context menu is not updated accordingly.


STEPS TO REPRODUCE
1. Link a file to an activity in Dolphin.
2. Open the context menu again
3. Observe the menu items

OBSERVED RESULT
The menu items are not changed (from Link to Unlink).

EXPECTED RESULT
The menu items are changed accordingly.

SOFTWARE/OS VERSIONS
Information for package kactivitymanagerd:
------------------------------------------
Repository     : unstable-kde-frameworks
Name           : kactivitymanagerd
Version        : 5.23.80git.20211216T015617~24398d9-ku.6.2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/KDE:Unstable
Installed Size : 837.2 KiB
Installed      : Yes
Status         : up-to-date
Source package : kactivitymanagerd-5.23.80git.20211216T015617~24398d9-ku.6.2.src
Summary        : KDE Plasma Activities support
Comment 1 Paul Worrall 2021-12-27 09:25:09 UTC
Repeatable on 5.23

If you set the desktop folder view to show files linked to the current activity, the files are displayed as expected, and their context menu on the desktop does show "Unlink".

Possibly a regression?

Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-43-generic (64-bit)
Graphics Platform: X11
Processors: 2 × AMD A6-6400K APU with Radeon(tm) HD Graphics
Memory: 7.7 GiB of RAM
Graphics Processor: AMD CEDAR
Comment 2 robin.seidel 2022-11-05 14:57:30 UTC
The problem currently exists under Alpine Linux as well. If I do link file to current activity, I do not get "unlink file from current activity". I also do not see the file in the folder view (files linked to current activity) after I link it to the activity. Switching activities does also not alter this state. So apparently the linking and unlinking seem to be broken.

Arch                        : x86_64
plasma                  : 5.26.2
kde frameworks  : 5.99.0
QT Version            : 5.15.6
kactivitymanagerd  : 5.26.2-r0
Operating System : alpine edge
Comment 3 S.Trzmiel 2022-11-10 17:45:48 UTC
Same here:
Fedora 36
Plasma 5.26.0
KF 5.99
Qt 5.15.6

No files listed trough activities:/ kio in dolphin even I know there are at least few of them, attempt to pin file to activity or unpin one already pinned makes no effect.
Comment 4 S.Trzmiel 2022-11-10 18:04:18 UTC
Rolling back plasma* and kactivitymanagerd to 5.25.5 didn't solve the problem so it started to happen earlier or some more packages have to be downgraded.
Comment 5 S.Trzmiel 2022-12-28 01:12:58 UTC
Small update:
KDE apps update to 22.12 seems to partially solve the issue, now activities kio shows files linked to activity, new files can be linked, already linked files can be unlinked.
However Dolphin context menu wrt to activities is not refreshed. IE action from the first use of activities context menu gets sticky unitill restart of Dolphin.
For example, I open new instance of Dolphin, rightclick on some file not linked to any activity and go to activities sub-menu, it shows "link file to activity" option as expected, however every next use of activities context menu show same "link file..." option, regardless if file that has been right-clicked is linked to any activity or not. Similar thing is when first use of activities menu is on file already linked, to some activity, manu show option to unlink this file and every next usage of this menu show option to unlink file, even if file is not linked to any of the activities.