Am Freitag 12 Oktober 2007 schrieb Christian G. Warden:
> Here's a simpler fix:
> --- mpd-dmenu-2007.09.29        2007-09-29 03:20:42.000000000 -0700
> +++ mpd-dmenu   2007-10-11 15:47:06.000000000 -0700
> @@ -23,7 +23,7 @@
>         list.find { |x| `MPD_HOST="#{x}" mpc>/dev/null; echo -n $?`=="0" }
>  end
>
> -$dmenu= ENV["DMENU"] or "dmenu -b"
> +$dmenu= ENV["DMENU"] || "dmenu -b"
This is in ruby exactly the same, I think "or" is more readable then "||"

> -               mpc("save", `echo | #{dmenu}`)
> +               mpc("save", `echo | #{$dmenu}`)
You were right about that.
I think I forgot to test this feature.


The new version is available at: 
http://johannes.krude.de/src/mpd-dmenu-2007.10.15

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to