In documentation for config file : /opt/zymp3/config/zymp3.conf
is variable named CONVERTED. It is not used by default.
Also this variable is never used in script.
Due to this I see problem -> Because when running zymp3, script is changing its active directory to /opt/zymp3:
[molni@LenovoT530 ~]$ cat `which zymp3 `
#!/bin/bash
cd /opt/zymp3
./zymp3
[molni@LenovoT530 ~]$
There is problem for usual user to write mp3 file.
I fixed it by adding into config file variable CONVERTED set to /tmp:
[molni@LenovoT530 ~]$ grep CONVERTED /opt/zymp3/config/zymp3.conf
CONVERTED=/tmp
[molni@LenovoT530 ~]$
and changed also lines in: /opt/zymp3/lib/logic.lib to use variable CONVERTED
[molni@LenovoT530 ~]$ grep -n CONVERTED /opt/zymp3/lib/logic.lib
29: ${SET_CONV_TOOL} -i $VIDEOFILE -acodec libmp3lame -ac 2 -ab 128k -vn -y "${CONVERTED}/$2" | ${SET_GUI_BIN} --progress --pulsate --title="Converting..." --text="Converting video to mp3.." --auto-close
99: mv -v "${CONVERTED}/${AUDIOFILENAME}.mp3" ${MUSICDIR}
102: mv -v "${CONVERTED}/${AUDIOFILENAME}.mp3" ${MUSICDIR}
[molni@LenovoT530 ~]$
Best regards,
Peter
In documentation for config file : /opt/zymp3/config/zymp3.conf
is variable named CONVERTED. It is not used by default.
Also this variable is never used in script.
Due to this I see problem -> Because when running zymp3, script is changing its active directory to /opt/zymp3:
There is problem for usual user to write mp3 file.
I fixed it by adding into config file variable CONVERTED set to /tmp:
and changed also lines in: /opt/zymp3/lib/logic.lib to use variable CONVERTED
Best regards,
Peter