Iz,

There might be a device-level option, to be honest, but I’ve only ever done it based on inserted media.

That said - I wouldn’t even try to chase this idea… as you said - if you know the path already and you’re doing a CLI then it’s already in the user's hands.

—
Ryan

> On Dec 13, 2020, at 1:26 PM, Iznogoud <iznogoud at nobelware.com> wrote:
> 
> I am also confused.
> 
> I am pretty positive that you cannot make (very easily) a GUI program give
> you a string of the filename (with full path) of a file that it has opened.
> But if you made the program open that file using the command line, you
> already have that string, and you may have to play some tricks with shell
> variables, etc, to fully construct it.
> 
> If your GUI program was launched somehow, say by clicking on a PDF link in
> the browser, you are most likely out of luck.
> 
> I think that your question is not well formed/posed.
> 
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list