I'm currently using qBittorrent to launch FB.
qBt uses this bit: https://github.com/qbittorrent/qBittorr ... n.cpp#L285 to replace command arguments with file names and paths.
In order to accomodate arguments with spaces I'm using the following:
Code: Select all
/scripts/qbittorrent-postprocess -N '%N' -L '%L' -G '%G' -F '%F' -R '%R' -D '%D' -C '%C' -Z '%Z' -T '%T' -I '%I'
qbittorrent-postprocess is a bash script.
Issue arises when a file or path has a single quote in it.
While I'm waiting for someone who has the skill to fulfill my wish (https://github.com/qbittorrent/qBittorrent/issues/10417), what would be the better strategy to cope with arbitrary inputs.
I did try double quotes, but I think they get removed somehow.