lcpz / awesome-freedesktop

Freedesktop.org menu and desktop icons support for Awesome WM
GNU General Public License v2.0
129 stars 25 forks source link

Fix search for desktop files #25

Closed rjhwelsh closed 2 years ago

rjhwelsh commented 2 years ago

The original section did not give me a list of desktop files to be generated. Instead it only returned the last one.

I changed the command tail -1 ; which only returns the last item in a list.

The option tail -n +1 ensures that entries from the first line down are included. This may seem redundant, but I left it as an example for future tinkerers. And also because the widgets do not provide a drag and drop feature for items on the desktop; as of yet.

The option tail -n +2 would hide the Desktop folder, I leave this for future imaginings.

I also added the sort command to sort entries after generating a list.