LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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.
Old

You CAN use kdialog "getfilename" to choose a directory, contrarily to some tutorials around

Posted 08-06-2021 at 10:06 PM by the dsc (linux-related notes)
Updated 08-15-2021 at 03:25 PM by the dsc (GrAmm3r ][)

Code:
dir=$(kdialog --getopenfilename "${defdir:-$PWD}" 'inode/directory' --title "Please choose the directory you want") ; cd ${dir}
I like it more than the "--getexistingdirectory" alternative (or zenity/gnome) which uses a system wide directory tree where you have to click on the tiny arrows or plus/minus icons to their left in order to open or close them, if you double click them hoping to enter, as you would on other file/directory navigation dialogs (or...
Member
Posted in Uncategorized
Views 302 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration