Autorun.sh not working on external USB

System: UBUNTU 24.04
VERSION GNOME: 46

I know there was a GTK issue on Ubuntu 22.04 that prevented using ‘Launch Software’ on a USB stick, so we used ‘Run as a program’ instead. I have a small script for organizing home directories, and it was very convenient to display it with a click.

Now, on Ubuntu 24.04, I have a new issue. I absolutely cannot execute either an autorun.sh or any script using ‘Run as a program’ or ‘Launch Software’. The permissions are correct. Is it me, or has the bash code changed? Is there another way to execute a script or an autorun?

PS: I’ve already tested even a simple ‘echo blabla’ script with bin bash, and it doesn’t run at all.

Script content:

#!/bin/bash

gnome-terminal – bash -c 'bash /media/$USER/USB/autorun.sh; exec bash