support qrcode generation on OS X
disable qrcode menu when using public server