I ended up calling Calobre from a script located on SD Card. It's not elegant, but at least opens the software without issues
Code:
myusername@penguin:/mnt/chromeos/removable/SdCard$ sh ./bin/run_cal.sh
And the script is below. Just trying to maintain a metadata.db on a location where its has no problem with permissions, and each time copy existing file back to the library location in case I need to powerwash the device and start over.
Code:
DBPATH=./Calibre
MDBLOC=/home/myusername/metadata_sd.db
if [ ! -f $MDBLOC ]; then
cp -T --force $DBPATH/metadata.db $MDBLOC
fi
if [ -f $MDBLOC ]; then
cp -T --force $MDBLOC $DBPATH/metadata.db
fi
export CALIBRE_OVERRIDE_DATABASE_PATH=$MDBLOC
QT_DEVICE_PIXEL_RATIO=1 nohup calibre --with-library $MDBLOC