Biont/sway-launcher-desktop

Prefer .desktop over commands

Opened this issue · 4 comments

mpldr commented

It has happened quite frequently that i want to start a program and instead it runs the command. Sometimes this is not an issue, for example with firefox. However, with others like Mumble or electron-stuff the Program won't appear unless started using the desktop entry.

Agree - I'm used to type 'nautilus' in other launchers, but in sway-launcher-desktop that doesn't work. I have to type 'Files' instead.

Biont commented

Sorry for not answering for so long.

I agree that this is something a lot of people will prefer. I've looked around and fzf does not give us a real way to weigh entries other than using --tiebreak=index, which would prefer entries that appear first in the list. BUT since we are populating the list in parallel, we don't actually control the order in which entries appear. So this does not lead us to a solution unless someone has an idea here.

Idea:

You click say MOD+D and it could list .desktops, MOD+D again for bins, and then again for any other providers (thinking logind/acpi).

I think it would make a nice UX.

Ideally configure which order, and which in parallel.

mpldr commented

I think having different modes would indeed be a good solution, I don't think implementing the described workflow would be great though. What might be preferable is an option --show=<desktop,binaries,stdin> stdin being basically {r,w}ofi/{d,be}menu, maybe with advanced options as displayed by wofi-wifi-menu