v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
685 stars 57 forks source link

File/Directory Selection with Specific Directory as start #264

Closed tokenwizard closed 5 months ago

tokenwizard commented 5 months ago

I'm trying to figure out if there is a way to launch with the --file mode but start in a specific directory. It seems by default it starts with the "Home" folder: image

I was hoping for a way to pass a folder as an argument, something like below, and have the file/directory selection dialog box open to that location: yad --file ~/Pictures

v1cont commented 5 months ago

default is current working directory

so try

pushd ~/Pictures
yad --file 
popd

On Tue, 11 Jun 2024 11:31:02 -0700 tokenwizard @.***> wrote:

I'm trying to figure out if there is a way to launch with the --file mode but start in a specific directory. It seems by default it starts with the "Home" folder: image

I was hoping for a way to pass a folder as an argument, something like below, and have the file/directory selection dialog box open to that location: yad --file ~/Pictures

-- wbr

Victor Ananjevsky, @.***>

tokenwizard commented 5 months ago

Ok, that seems to work. Thanks!

pushd ~/Documents
yad --file

works just fine.

Unfortunately pushd ~/Documents | yad --file does not, but that's not a big deal.

tokenwizard commented 5 months ago

Closing with above solution.