Re: Adding command line parameter to GUI application?

Tomas Hajny via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
On 2025-02-25 22:09, Jean SUZINEAU via fpc-pascal wrote:
> I haven't done it recently but basically on Windows you have keys in
> the registry under HKEY_CLASSES_ROOT to associate your program with a
> specific file extension.
> 
> You can view the registry with regedit.
  .
  .

I'd add that you can define the association either using an installer 
used to install your program on the PC, or you can do it manually 
without any installer - the latter may be done in two ways, the first 
being right clicking a file with the extension you intend to associate 
to your program, selecting "Open with" from the context menu, then 
selecting "Choosing app on your PC" at the bottom and then selecting the 
"Always" button after finding the path to your program; the second being 
using the Settings dialog -> Apps -> Default apps -> Choose defaults by 
file type and then again "Choosing app on your PC" at the bottom.

Tomas
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.