I've looked at some other StackExchange questions pertaining to this topic, but for whatever reason I still cannot get to a resolution.
This is the simple test.desktop
file I have on my desktop:
[Desktop Entry]
Version=1.0
Name=Test
Comment=Test the terminal running a command inside it
Exec=gnome-terminal -e "~/test.rb"
Icon=utilities-terminal
Terminal=false
Type=Application
Categories=Application;
I am simply trying to make a shortcut that runs a Ruby script when double clicked. I'm trying to make this extremely easy for an end-user to open up, but it just keeps opening up in a text editor when I double click the file.
I have also verified that it has write permissions as well, but still nothing. If I replace ~/test.rb
with ifconfig
, it still doesn't work.
What am I doing wrong here?