Skip to content

"update-desktop-database" Process Behaving Strangely #445

Open

Description

@ThisNekoGuy

Describe the bug

appimagelauncherd starts a process called update-desktop-database that somehow manages to run its process on a separate (non-OS) hard drive drive partition (my OS drive is an SSD) I have installed (even though KSysGuard says it's running the command on ~/.local/share/applications) preventing me from unmounting that drive whenever I decide I need to. In addition, with this process running, the mentioned hard drive spins a lot (loudly) when I'm not even doing anything on it.

image

Expected behavior

The update-desktop-database likely shouldn't be running on drives/partitions that are completely outside of the scope of the command being run with it, hindering the target drive/partition.

To Reproduce
Steps to reproduce the behavior:

  1. Install AppimageLauncher via the AUR
    image

  2. Set up AppImage Launcher and reboot the machine

  3. Check the system monitor and listen to (my) 7200 RPM hard drive spin loudly

  4. Kill the offending process

  5. Notice that the strange behavior stops

System, software and AppImage information

Distro: Arch Linux
Desktop Environment: KDE Plasma version 5.22.5 (compiled with Clang and with -O3 optimization)
AppImageLauncher version installed: 2.2.0-5 (via AUR)

List of AppImages you tried:

  • N/A

Activity

  1. added
    bug
    needs verification
    on Sep 9, 2021
  2. TheAssassin commented on Mar 18, 2022

    @TheAssassin
    Owner

    update-desktop-database is a workaround to make some distros/DEs just show the desktop entries within a reasonable amount of time. It must be run inside your home directory. What you describe seems normal workflow wise, but for some weird reason the process consumes a lot of resources.

    I'm not sure whether your system is special in some way so the command just takes a lot of time and resources and causes a slowdown, it seems like the most plausible explanation. The question is how to work around that issue.

    The update-desktop-database likely shouldn't be running on drives/partitions that are completely outside of the scope of the command being run with it, hindering the target drive/partition.

    This is certainly a wrong assumption on your end. AppImages are user-specific, the same applies to integrated files etc. Your home directory is in some way the only partition that is within the scope of the command.

  3. ThisNekoGuy commented on Mar 19, 2022

    @ThisNekoGuy
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds verification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions