2

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.

muru
  • 207,228
Morphin
  • 131

2 Answers2

1

I found my solution: I created a .desktop file at /home/USERNAME/.local/share/applications/morphin.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Morphin
Exec=/opt/scripts/morphin.sh
Icon=/opt/scripts/morphin.png
Type=Application
NoDisplay=false
Terminal=false
StartupNotify=true
Categories=Application;Network;
Hidden=true

Finally I can see my program in other programs and I can launch it.

Zanna
  • 72,312
Morphin
  • 131
0

Not tested, but if you add

#! /bin/bash
#

at the top of your file and make it executable with chmod +x file it should be runnable by double click from the (most of?) filemanagers.

Rmano
  • 32,167