Re: Find all .desktop files in my system – failed

Colin Law clanlaw at googlemail.com
Sun Nov 11 13:23:56 UTC 2012


On 11 November 2012 12:42, Chris Green <cl at isbd.net> wrote:
> On Sat, Nov 10, 2012 at 09:21:21PM +0000, Colin Law wrote:
> ...
>> You can also try
>> locate .desktop
>>
> That will find a lot more than you want, it will return every single
> file within a directory hierarchy whose top level directory matches
> *.desktop.   This is so rarely what one needs that I'm amazed it's the
> default for locate.

I am not sure I would describe it as a *lot* more than is wanted.  For
me it only finds a very few files that are not .desktop files.  But
you are right, this is better I think
locate "*.desktop"

Colin




More information about the ubuntu-users mailing list