Great to have a script for mBlock in Wine.
But isn't it better to check if user are in the
dialout group. And if not so, write an instruction how to add user to
And if the user is
root, write a warning that it is better to add user to
dialout group (and how to do that) and then continue with statrting mBlock.
Also check if file /etc/udev/rules.d/mblock.rules exists, and if not, also print out how to set that.
Preferable telling how to add with command printf(1):
printf "sudo adduser %s dialout\n" $USER
It would make the script not loosing security, and still be friendly.
By the way, are it always
/dev/ttyUSB0? The symlink will always be
/dev/ttyUSB0 i'm not that convinced.