Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
You CAN use kdialog "getfilename" to choose a directory, contrarily to some tutorials around
Tags bugs/features, kdialog
Code:
dir=$(kdialog --getopenfilename "${defdir:-$PWD}" 'inode/directory' --title "Please choose the directory you want") ; cd ${dir}
...
I believe at some point in time this trick was working in a more proper way, maybe it was just me being confused, but "right now" just by entering the directory and clicking okay doesn't select it. You got to either type the dir name on the field from its containing directory, or enter it, and type "." on the field, no quotes, just the dot.
Maybe there's some config or parameter that makes just the highlighting/selecting and okaying do all the work, though.
Total Comments 0