I am running Linux Mint 21.2 Cinnamon with Cinnamon version 5.8.4.
To solve a problem I keep having with my touchscreen, I have created a shell script (is that the correct term?). Its entire contents are as follows:
This is my first time writing a script in Linux, I think.#!/bin/bash
xinput map-to-output 11 HDMI-0
xinput map-to-output 12 HDMI-0
I created a menu item for the script. I checked the box for "launch in Terminal." But when I click the menu item, the script does not launch, in Terminal or otherwise. Instead, it opens in Text Editor.
When I double-click on the file in Nemo, it opens a dialog box says it's an executable text file and asks me whether I want to run it or display its contents. If I select "Run," a Terminal window briefly flashes onscreen and, judging by the fact that my touchscreen started working properly the first time it did that, I infer that that's the script executing correctly. But when I click the menu item, I don't even get the dialog box; I just get Text Editor with the script open in it for editing.
How do I make it so that when I click the menu item, it runs the script? It would be nice if double-clicking the file also just ran the script, but I can live with the dialog box if I have to.
Thank you!