LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   MATE search tool cannot find text files with known content (https://www.linuxquestions.org/questions/linux-newbie-8/mate-search-tool-cannot-find-text-files-with-known-content-4175681309/)

blue-whale 08-31-2020 09:27 AM

MATE search tool cannot find text files with known content
 
I run Debian buster with the Mate desktop - recently upgraded from stretch. If I launch mate-search-tool from the panel, I get the message "No files found". I experimented with launching from the command line - obtained via mate-terminal. Here are the results:

Code:

~$ mate-search-tool                          NONE found
~$ whereis mate-search-tool
mate-search-tool: /usr/bin/mate-search-tool
 
~$ /usr/bin/mate-search-tool                  NONE found
~$ cd /usr/bin
/usr/bin$ mate-search-tool                    NONE found
/usr/bin$ sudo mate-search-tool 
[sudo] password for geoff: ****              FOUND as expected

I wonder if other users of debian mate mate-search-tool have had this experience? The manual for mate-search-tool just repeats what is on the GUI, and dconf has little to add. There are no relevant mate-search-tool related configuration files in my ~$/.config directory.

I am hoping that someone knows of a config file that may need tuning?

individual 08-31-2020 06:43 PM

From the man page:
Quote:

MATE Search Tool uses the find, grep, and locate UNIX commands.
Have you tried running updatedb and then running mate-search-tool? Also, did mate-search-tool actually return results when you ran it as root?

blue-whale 09-01-2020 09:45 AM

Thanks individual for your two comments. To answer in reverse order:

I get a root terminal using
Code:

Mate->Applications->System Tools->Root Terminal
added to the panel. This did actually return correct results. When the search is completed, the terminal shows an error message:
Code:

(mate-search-tool:6497): EggSMClient-WARNING **: 14:54:52.281:
Failed to connect to the session manager:
None of the authentication protocols specified are supported

In my original post the sudo search also worked.

For your other question, I do not have the updatedb command available. This is provided by the packages dlocate and mlocate, neither of which are installed on my system. I am wondering which is better for my simple requirements - basically searching through the file system looking for particular bits of text?

I have been doing a bit of digging, as apart from this mate-search-tool issue I also have GUI issues in pluma. I sometimes find a huge number of errors reported in .xsession-errors, many associated with mate and I wonder if those are relevant? But I think those issues should be in different thread.

Just one more thing: the root terminal is launched from gksu , and it turns out that gksu is obsoleted. It is used in several of the mate utilities.

blue-whale 09-03-2020 11:56 AM

Quote:

Originally Posted by individual (Post 6161224)
From the man page: Have you tried running updatedb and then running mate-search-tool?

I have now installed the package dlocate. This provides a perl script and some manuals:
Code:

/usr/share/dlocate/updatedb
/usr/share/man/man1/dlocate.1.gz
/usr/share/man/man8/update-dlocatedb.8.gz

But there is no mention of the command updatedb in either of the above manuals.

I wonder if I have the right package?

What exactly is updatedb supposed to do?

chrism01 09-04-2020 04:06 AM

updatedb updates the db (sic) that the locate cmd uses :)

I never rely on that because it's only right immediately after a run (from cron usually) daily.

I just use good old 'find', which is slower because it actually goes and searches the disk immediately, but I usually have at least a rough idea where stuff is, so I rarely search the whole disk.

ondoho 09-05-2020 06:52 AM

Quote:

Originally Posted by blue-whale (Post 6161124)
Code:

~$ mate-search-tool                          NONE found
~$ whereis mate-search-tool
mate-search-tool: /usr/bin/mate-search-tool
 
~$ /usr/bin/mate-search-tool                  NONE found
~$ cd /usr/bin
/usr/bin$ mate-search-tool                    NONE found
/usr/bin$ sudo mate-search-tool 
[sudo] password for geoff: ****              FOUND as expected


This looks like you're paraphrasing, not like the actual terminal output.
Please show us the actual terminal output.
Also add
Code:

ls -l /usr/bin/mate-search-tool

blue-whale 09-06-2020 12:27 PM

Quote:

Originally Posted by ondoho (Post 6162774)
This looks like you're paraphrasing, not like the actual terminal output.
Please show us the actual terminal output.
Also add
Code:

ls -l /usr/bin/mate-search-tool

I am aware of the dangers of paraphrasing, and for this reason showed the exact terminal output. When you run from the terminal, the search dialogue is displayed. When the search is completed, the terminal is waiting for further input. On closing the dialogue, the command completes.

However, rerunning the experiments, I went one step further to see the command result. I have repeated all the experiments. They give the same results and I have shown just the first and last here. I have added your request and shown the command result as well - all copied as is from the terminal :).

Code:

~$ ls -lF /usr/bin/mate-search-tool
-rwxr-xr-x 1 root root 171968 Apr 27  2019 /usr/bin/mate-search-tool*

~$ mate-search-tool
~$ echo $?
0
NONE FOUND

~$ cd /usr/bin
/usr/bin$ sudo mate-search-tool
[sudo] password for geoff:
/usr/bin$ echo $?
0
FOUND AS EXPECTED


ondoho 09-06-2020 03:37 PM

^ OK, thanks for explaining it better.
What are you searching for?
Possibly you (normal user) just don't have permission to look inside the files that contain it.

BTW, running a GUI tool as root can mess things up. Try not to do it.


All times are GMT -5. The time now is 06:00 AM.