I wanted to dismount a volume and lsof showed kactivitymanagerd had a directory open (cwd DIR) that I hadn't worked in since yesterday. I might have used Kate to edit a file in that directory. I don't use KDE.

What does this daemon do, and why would I want it running on my computer? Its GitHub project doesn't provide end-user information.

How can it be disabled?


You should remove the package associated with it.

sudo apt remove kactivities

After that, the popup about kactivitymanagerd doesn't show up by ejecting external disks. I don't see any unpleasant difference in behaviour.

| improve this answer | |
  • it will remove the entire kde desktop. it might be okay for some but not for all. – ozma Jul 12 '18 at 0:26
  • Read the question. OP said they don't use KDE, so we can assume KDE desktop is not installed. – banan3'14 Aug 3 '18 at 20:02
  • I couldn't find any package kactivities in Ubuntu 18.04, but I could do apt-get remove kactivitymanagerd – Markus Kuhn Feb 12 '19 at 18:44

To the question:

What does this daemon do?

See the 'readme' of kactivitymanagerd, it is quite understandable.


Core components for the KDE Activity concept


When a user is interacting with a computer, there are three main areas of contextual information that may affect the behaviour of the system: who the user is, where they are, and what they are doing.

Activities deal with the last one. An activity might be "developing a KDE application", "studying 19th century art", "composing music" or "watching funny videos". Each of these activites may involve multiple applications, and a single application may be used in multiple activities (for example, most activities are likely to involve using a web browser, but different activities will probably involve different websites).

KActivities provides the infrastructure needed to manage a user's activites, allowing them to switch between tasks, and for applications to update their state to match the user's current activity. This includes a daemon, a library for interacting with that daemon, and plugins for integration with other frameworks.


Most applications that wish to be activity-aware will want to use KActivities::Consumer to keep track of the user's current activity, and KActivities::ResourceInstance to notify the activity manager of resources the user has accessed (this is not necessary for resources accessed via KIO, as a plugin is provided to do that automatically).

The other classes available in the API are primarily intended for use by the workspace to allow the user to view and manage available activities.

| improve this answer | |
kactivitymanagerd --help
   start    Starts the service
   stop     Stops the server
   status   Prints basic server information
   start-daemon Starts the service without forking (use with caution)

   # There is its database here.

When you run it from a terminal and then change a file. It will export this:

Creating the cache for:  "/home/user/bash/ubuntu.txt"
Already in database?  true
First update :  QDateTime(2020-01-31 09:26:01.000 CET Qt::TimeSpec(LocalTime))
Last update :  QDateTime(2020-07-02 21:07:38.000 CEST Qt::TimeSpec(LocalTime))
After the adjustment
Current score :  4375.59
First update :  QDateTime(2020-01-31 09:26:01.000 CET Qt::TimeSpec(LocalTime))
Last update :  QDateTime(2020-07-02 21:07:38.000 CEST Qt::TimeSpec(LocalTime))
Interval length is  19
New score :  4375.9
ResourceScoreUpdated: "1946e56b-9e97-4745-afca-cc143ede0c6c" "kwrite" "/home/user/bash/notes.txt"

I do not have clear idea why should I keep it as well...

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.