How can I detect whether something is selected in Dolpin's right pane?

i’ve come up against this before

so using

Exec=konsole --workdir %f --hold -e pwd

will get you the correct directory

i think it must be a bug in konsole or something up stream from it.