#copy the directore
TARGET=/home/$USER/.local/share/QGIS/QGIS3/profiles/default/python/plugins/network-store-qgis
rm -rf $TARGET
mkdir $TARGET
cp -r ./../network-store-qgis /home/$USER/.local/share/QGIS/QGIS3/profiles/default/python/plugins/
# rm -rf /home/$USER/.local/share/QGIS/QGIS3/profiles/default/python/plugins/network-store-qgis/.vscode
# cp ./../network-store-qgis/.vscode/settings_deployed.json  $TARGET/.vscode/settings.json
rm -rf $TARGET/__pycache__
rm $TARGET/.vscode/settings.json
mv $TARGET/.vscode/settings_deployed.json $TARGET/.vscode/settings.json
#start qgis desktop
code $TARGET
qgis -d
