Wow, sweet. Not sure how you got from A to B. But, thats a great command. Caused me to dust off Gnome-Do and see if i could effect it behaviour, as regards Leafpad. So, i ran a text file through it and selected "1)" (Leafpad).
Gnome-Do now opens the actual file in Leafpad, and not a blank Leafpad page, when its name is entered. However, it only works for files that have one word in the title, more than that and i get a blank page.
Oh well, iv come to appreciate Kupfer, as a launcher, for its speed, if not its looks.
Gnome-Do was so snappy in Ubuntu, but in Openbox running on Debian, one time out of five when it is called there is a lag, during which there is only a white block on the middle of the screen, before it fully renders. Only a second mind you, but the point of a launcher is to be snappy.
Still, weird though right? Only one word title, files open no problem. Something remediable in ~/.local/share/applications/defaults.list me thinks, as before editing that file, replacing Gedit entries with Leafpad, Do wouldnt call Leafpad at all. I just have no idea what to enter there to fix it.
Ah, Openbox, you are the most streamlined, snappiest Windows Manager/Desktop Environment, but your quirks, your damn quirks. Locales anyone?