Monday, September 5, 2022

[SOLVED] Launch "select file" dialog using a shell script

Issue

In Ubuntu, is it possible to launch a "select file" dialog from the command line? I need to find a command that launches the "select file" dialog (so that I can prompt the user to navigate to a file using a shell script, and then return the file path.)


Solution

Use zenity

More reference here: http://library.gnome.org/users/zenity/stable/file-selection.html.en



Answered By - anishsane
Answer Checked By - Mildred Charles (WPSolving Admin)