%PDF- %PDF-
| Direktori : /snap/snap-store/1216/ |
| Current File : //snap/snap-store/1216/setup-autostart |
#!/bin/bash
if [ -r $GS_SELF_TEST_OS_RELEASE_FILENAME ];
then
if [[ "$(grep "^NAME" $GS_SELF_TEST_OS_RELEASE_FILENAME | awk -F '"' '{print $2}')" == "Ubuntu" ]];
then
# Delete autostart and recreate to handle migration to ubuntu-software snap
# FIXME: Remove the following line after revision > 214 and < 352 is the majority
rm -rf $SNAP_USER_DATA/.config/autostart
if [[ ! -d "$SNAP_USER_DATA/.config/autostart" ]];
then
mkdir -p $SNAP_USER_DATA/.config/autostart
ln -sfnt $SNAP_USER_DATA/.config/autostart/ ${SNAP/`basename $SNAP`/current}/autostart/ubuntu-software-service.desktop
fi
fi
fi
exec "$@"