I have a xfreerdp
connection file like:
xfreerdp /v:10.1.60.151 -sec-nla /cert-ignore
The file name is test.rdp
and I can run it with bash in a terminal with the command bash test.rdp
But I need to run this file from GUI with double click.
I'm tryng to set bash as default to open *.rdp
files but I couldn't figure out I can do that.
I don't mind changing the filename extension
I also want to know if I can run this file directly when I download with Chrome.
Is this file something that users need to download and use on your server (e.g. while they are connected with their own user to your linux machine?)? Or are they supposed to download and run on their own computer?
– Three Diag Nov 07 '16 at 10:54tl;dr: There is nothing in unix systems that allow you to do the same as .bat file (download it and double click it). Users will always have to set the default in their machine to make it clickable in one of the ways described in the article. If you have control on their environment (i.e. they are on your server) then you can set the default behavior for them othw. you are better off instructing them on using the shell to launch.
– Three Diag Nov 07 '16 at 11:03