j4-dmenu-desktop
j4-dmenu-desktop copied to clipboard
New option: `--add'
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'
An even better solution would be to read from stdin
Or create a .desktop file in .local/share/applications
.
Or create a .desktop file in
.local/share/applications
.
That's really annoying though. --add ... would be much more convenient.