Biont / sway-launcher-desktop

TUI Application launcher with Desktop Entry support. Made for SwayWM, but runs anywhere
GNU General Public License v3.0
606 stars 28 forks source link

[SOLVED] Desktop Entries Not Being Listed #72

Open electricjones opened 1 year ago

electricjones commented 1 year ago

This may not be a bug, but it consumed hours of my life, so I thought I'd post the problem and solution for others.

My installation was not showing any desktop entries. At all. And, I don't believe it was showing any user entries either.

It turns out that I had mawk installed and now gawk, which the script actually relies on. I'm not sure if awk will actually work, but I replaced all the calls to awk with gawk and everything worked fine from there.

The issue (I think) is that BEGINFILE and ENDFILE are gawk specific implementations and NOT part of the awk standard, and therefore not implemented by others.

Hope that saves others some headache :)

Mikkolehtimaki commented 1 year ago

Thanks! I also had mawk, not gawk. I'm only seeing commands listed, not desktop files. After this change, I only saw command history. Any more debugging ideas? On Debian bookworm.