On 2023-03-19 18:37, Per Jessen wrote:
Carlos E. R. wrote:
I get literally thousands of that message spamming my logs.
Googling a bit, I decided to edit /etc/xdg/autostart/tracker-miner-fs-3.desktop:
I changed:
Exec=/usr/lib/tracker-miner-fs-3
to:
Exec=LANG=en_US.UTF-8 /usr/lib/tracker-miner-fs-3
That syntax is specific to the shell/bash, unless that "Exec" is invoked with e.g. bash, it won't work.
Good point. I googled a bit, and in <https://wiki.archlinux.org/title/desktop_entries> found this: +++············· 2.3 Validation As some keys have become deprecated over time, you may want to validate your desktop entries using desktop-file-validate(1) which is part of the desktop-file-utils package. To validate, run: $ desktop-file-validate <your desktop file> This will give you very verbose and useful warnings and error messages. ·············++- Very verbose warnings and errors! Fine, let's try. Telcontar:~ # desktop-file-validate /etc/xdg/autostart/tracker-miner-fs-3.desktop Telcontar:~ # Well... says nothing. That's in linuxese means "no error, nothing to say". So the syntax is good :-D Ohhh..., look: +++············· 5.2.1 Modify environment variables To set environment variables, in the .desktop file, edit the Exec= line to first use the env(1) command to set your variables. For example, with the original line commented out: ~/.local/share/applications/abiword.desktop ... # Exec=abiword %U Exec=env LANG=he_IL.UTF-8 abiword %U ... ·············++- So, I got it almost right. I do the edit, then check with "desktop-file-validate", and doesn't complain.
I have the file "/etc/xdg/autostart/tracker-extract.desktop" only in backups from 2018 or 2017, but not in the current system.
If you're not using it, you could just de-install. I don't see "tracker" installed on any of my desktops.
It's used by gnome/xfce. On KDE you should have baloo instead.
Where can I change the LANG for "tracker-extract" to try eliminate that nuisance message?
Maybe try just adding a line with "LANG=whatever" to that desptop file. There is a specification for those .desktop files, although I didn't see anything about setting variables.
I just did :-) I did more changes. To: /usr/share/dbus-1/services/org.freedesktop.Tracker3.Miner.Extract.service +++············· [D-BUS Service] Name=org.freedesktop.Tracker3.Miner.Extract Exec=/usr/lib/tracker-extract-3. SystemdService=tracker-extract-3.service # Miner details needed for tracker-control Path=/org/freedesktop/Tracker3/Miner/Extract NameSuffix=Miner.Extract ·············++- and +++············· /usr/lib/systemd/user/tracker-extract-3.service [Unit] Description=Tracker metadata extractor ConditionUser=!root [Service] Type=dbus BusName=org.freedesktop.Tracker3.Miner.Extract ExecStart=/usr/lib/tracker-extract-3 Restart=on-failure # Don't restart after tracker daemon -k (aka tracker-control -k) RestartPreventExitStatus=SIGKILL Slice=background.slice [Install] WantedBy=default.target ·············++- Telcontar:~ # systemctl daemon-reload Telcontar:~ # I have no idea what syntax to use here, and google doesn't say how to add environment on this. So I am trying the same syntax. It is possible the syntax is (<https://www.freedesktop.org/software/systemd/man/systemd.service.html#>): Environment=LANG=LANG=en_US.UTF-8 So changing accordingly. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)