linux desktop app from command line with args

I want to start a desktop app in linux from the command line and pass it an argument representing a file to be worked on. Is this possible without compiling for console? In the app itself, what is the entry point for the arguments being passed?

You can access the command-line that launched your app with System.CommandLine.