Views:
1,757
Votes: 5
Tags:
18.04
bash
python
xdotool
zenity
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1337013
Title:
How to interact with zenity window and type some text inside it?
ID:
/2021/05/08/How-to-interact-with-zenity-window-and-type-some-text-inside-it_
Created:
May 8, 2021
Edited: January 8, 2022
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Change your zenity.sh
file with:
#!/usr/bin/python
zenity --forms --title="Question" \
--add-entry="Question" \
To:
#!/bin/bash
zenity --forms --title="Question" \
--add-entry="Question" \
You are not calling zenity
within a python script. You are calling it from a bash/shell command so your shebang (first line) must be #!/bin/bash
not #!/usr/bin/python
.