LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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 01:51 PM.

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