SV 1.11.2 on fedora 42: Cannot open files bug + workaround

Since upgrading to the latest Fedora 42 Synthesizer V Studio 1.11.2 hangs when trying to open or import any file.

The problem is that synth v uses zenity binary program to get a native filechooser dialog but launches it with some weirdly formmated arguments that in the latest version of zenity causes the dialog to hang before displaying anything. These are the arguments sent by synth v to import a file:

[--file-selection]
[--title=Import...]
[--file-filter=*.mid *.midi *.ust *.vsqx *.vpr *.ccs ]
[--file-filter=All files | *]

Notice that in the 3rd argument, the filter string has a trailing space at the end that is causing problems to zenity.

It looks to me that the bug is in both programs: synthv should not be writing that trailing space and zenity should display an error instead of hanging.

While a bug fix is issued, if ever, for synthv and zenity you can use a workaround consisting in a wrapper script that detects if zenity is called by synthv and fixes the arguments to be passed to the real zenity program:

rename /usr/bin/zenity to /usr/bin/zenity.orig:

mv /usr/bin/zenity /usr/bin/zenity.orig

create a new /usr/bin/zenity file with the following content:


#!/usr/bin/bash

exec_path=$(realpath /proc/$PPID/exe)
exec_name=$(basename "$exec_path")
if [ $exec_name = "synthv-studio" ]; then
        newargs=()
        for arg in "$@"; do
                newargs+=(`echo "$arg" | sed -e 's/ $//'`)
        done
        /usr/bin/zenity.orig "${newargs[@]}"
else
        /usr/bin/zenity.orig "$@"
fi

Set the new file as executable:

chmod 755 /usr/bin/zenity

1 Like

Great to know - thanks for sharing !