j4-dmenu-desktop icon indicating copy to clipboard operation
j4-dmenu-desktop copied to clipboard

New option: `--add'

Open toluschr opened this issue 3 years ago • 3 comments

Since some applications, in this case st do not come with a .desktop file (By default), it's helpful to provide a very simple, builtin way to add them to dmenu, without writing custom desktop files, or additional scripts.

Even though it's not standard, common libc implementations, ie. musl, glibc provide the strchrnul function, so it shouldn't be an issue.

Example:

./build/j4-dmenu-desktop --add 'Newsboat;alacritty -e newsboat' --add 'st'

toluschr avatar Dec 01 '20 12:12 toluschr

An even better solution would be to read from stdin

toluschr avatar Dec 01 '20 12:12 toluschr

Or create a .desktop file in .local/share/applications.

sbogomolov avatar May 12 '21 20:05 sbogomolov

Or create a .desktop file in .local/share/applications.

That's really annoying though. --add ... would be much more convenient.

toluschr avatar May 12 '21 21:05 toluschr