! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Complete X freeze when executing shell script containing sudo from Thunar
Status:
RESOLVED: WONTFIX

Comments

Description Thomas 2014-04-06 05:34:51 CEST
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
Comment 1 Harald Judt editbugs 2015-02-21 13:20:55 CET
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.

Bug #10799

Reported by:
Thomas
Reported on: 2014-04-06
Last modified on: 2015-02-21

People

Assignee:
Jannis Pohlmann
CC List:
2 users

Version

Attachments

Additional information