When I double-click to execute a specific .sh-script, X completely freezes, requiring me to kill it from another TTY. Steps to reproduce: 1. Create a shell script containing the code below. Probably, any shell script that includes a sudo command. 2. Double-click it in Thunar. Expected outcome: Unknown, since it has to ask for a sudo password. Actual outcome: X completely freezes, sound stops playing. Now, the shell script shouldn't contain sudo, but that doesn't invalidate this issue. Sample (one-line) contents for .sh file: sudo find /bin /boot /etc /lib /opt /sbin /srv /usr /var -type f -o -type l | sort >/tmp/files
Thunar does no longer execute shell scripts as of 1.6.5. It is generally a bad idea. The default action now is to open them. You can use a custom action to execute shell scripts in a terminal.