Package: localsearch
Version: 3.11.0-1
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

I use a custom live cd (built via live build) very often (as a daily
driver in fact), and find localsearch rather problematic, because of CPU
usage, and "disk" space usage (which in live cd is actually tmpfs /
RAM). Sometimes I create directories with millions of files in home
directory (i.e. git clones, or live build itself), and localsearch
indexes them with index in memory, and cause three issues:

1. Some files are owned by root (due to how lb_build works), so
localsearch complains and log and db spams about millions of files.

2. CPU usage is generally high.

3. DB disk space usage, can easily be in 5 to 10GB in such scenario, and
because of live cd environment, these gigabytes do live in tmpfs / RAM,
eating precious resources.

As I do not really use localsearch, I wish to disable it. I do know
there are toggles in the gnome settings to do that, but they do not
appear to work (i.e. localsearch is still running, and I need to kill it
and purge index cache), and as I use live cd environment, these settings
are lost after each reboot, and are easy to forgot.

I wish to disable it during live cd build (via chroot script), instead
fixing later.

I did for now

systemctl --global mask localsearch-3.service localsearch-control-3.service 
localsearch-writeback-3.service || true

but I do not know if this is really a correct solution.

unlink /etc/xdg/autostart/localsearch-3.desktop

is another option, but that will not work if I upgrade localsearch
package, as upgrade will restore that file.

I would appreciate README.Debian that documents proper way to disable it
globally (for all users), even before any of the users ever logged into
system (i.e. when user is not even added to the system).

There are many conflicting information on various forums and blogs, some
are outdated, or not quite correct, and others are fragile, and can
break in the near future.

Uninstalling localsearch does not appear to be an option due to package
dependencies.

Regards,
Witold

-- System Information:
Debian Release: forky/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.19.10+deb14-amd64 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages localsearch depends on:
ii  dconf-gsettings-backend [gsettings-backend]  0.49.0-4
ii  libc6                                        2.42-14
ii  libcue2                                      2.2.1-4.2
ii  libexempi8                                   2.6.6-2+b1
ii  libgexiv2-2                                  0.14.6-2
ii  libgif7                                      5.2.2-1+b2
ii  libglib2.0-0t64                              2.88.0-1
ii  libgsf-1-114                                 1.14.53-1.1
ii  libgstreamer-plugins-base1.0-0               1.28.1-1
ii  libgstreamer1.0-0                            1.28.1-1
ii  libgxps2t64                                  0.3.2-6
ii  libicu78                                     78.3-1
ii  libjpeg62-turbo                              1:2.1.5-4
ii  libpng16-16t64                               1.6.56-1
ii  libpoppler-glib8t64                          25.03.0-11.1+b1
ii  libseccomp2                                  2.6.0-2+b1
ii  libtiff6                                     4.7.1-1
ii  libtinysparql-3.0-0                          3.11.0-1
ii  libtotem-plparser18                          3.26.6-3
ii  libupower-glib3                              1.91.2-1
ii  libwebpdemux2                                1.5.0-0.1+b1
ii  libxml2-16                                   2.15.2+dfsg-0.1
ii  procps                                       2:4.0.4-9+b1
ii  tinysparql                                   3.11.0-1

Versions of packages localsearch recommends:
ii  localsearch-extractor-ffmpeg  3.11.0-1
ii  localsearch-extractor-iso     3.11.0-1
ii  localsearch-extractor-office  3.11.0-1

localsearch suggests no packages.

-- no debconf information

Reply via email to