Zenity does not update the file extension. How to fix that?

39 views Asked by At

Zenity seems not updating the file extension of the file you want to save when you have different file format filter and you select a new file extension.

zenity --file-selection --save --filename="hello.txt" --file-filter "text (*.txt)|*.txt"  --file-filter "Jpeg (*.jpg)|*.jpg"

The hello.txt is initially selected but when I select jpg in the filer, the name is still have hello.txt I wanted to have hello.jpg.

Thx !

txt extension while jpg selected

0

There are 0 answers