Execution of Shell Scripts: Fail to open script with a space in the file name when running in terminal
Version information
[Xfce / Thunar 4.20.2] Xubuntu 25.10 daily build 2025-06-12
[Xfce / Thunar 4.20.3] openSUSE Tumbleweed XFCE Live x86_64 Snapshot 2025-06-11
Steps to reproduce
- Edit --> Preferences --> Advanced. Set "Security/Execute Shell Scripts" to "Ask every time".
- Create an executable shell script with a space in its file name, set
chmod +x
for it - Double-click the script to open the "Open Shell Script" dialog
- Click
Run In Terminal
- Observe the resulting error
Current behavior
Executable scripts with spaces in the file name results in an error specifically and only when you select Run In Terminal
; a script named run script.sh
located at /home/xubuntu/run script.sh
returns the following:
(the issue does not occur if you instead clicked Execute
or you have Thunar configured to run scripts immediately)
Expected outcome
Executable scripts with spaces in the file name should run successfully regardless of whether you have the script run immediately, you click Execute
in the popup, or you click Run In Terminal
Video demonstration
Additional information
Relevant issue that recently added the Run In Terminal
#1070 (closed)
As well as the relevant recent commit that added the Run In Terminal
:
4f93f6a3