I have a new 20.04.1 install on a Lenovo Ideapad 3, but some programmes are loading the text very small.
I asked for help on one programme that was the smallest and was told to run the code QT_SCALE_FACTOR=2 ~/.local/share/xxx/xxx in a terminal and this worked well, I was also told that writing "export QT_SCALE_FACTOR=2" in an init script would enable this on start up, but I am struggling with this as I have not written one before.

I looked on line for help and based on what I could find, tried putting a the file in etc/init.d and created a symbolic link to it in etc/rcd.2, the code I used was this, but it does not work.

#! /bin/sh
export QT_SCALE_FACTOR=2 ;
esac ;;
exit 0

Can anyone suggest the appropriate code that makes up a script please and advise where it should be placed?