I am writing a shell script that is meant to prompt the user for a file, and since I do not expect the end user of my script to be tech-savvy, rather than starting command line for interaction, I would like the shell to be able to summon the system File manager in a standard way (e.g. using xdg or similar) that would open it in an "Open file..."-like dialog, and output the full or relative path to a file or directory once one was selected. Is there a way to do this either in a Linux or MacOS, or both?
Asked by fja
(13 rep)
May 3, 2024, 10:24 AM
Last activity: May 4, 2024, 01:24 AM
Last activity: May 4, 2024, 01:24 AM