diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index bc1b52801a1a75693788ed65dfff4ad97023eab8..2b383c7262b2809b6f3f2a6fb19b3fbe2e7128f1 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -193,7 +193,7 @@ parts:
       chmod 755 "$AUTOPSY_LOCATION/bin/autopsy"
 
       echo '#!/bin/bash' > $AUTOPSY_LOCATION/bin/tmpsetup.sh
-      echo "mkdir -p $SNAP_USER_DATA/tmp" >> $AUTOPSY_LOCATION/bin/tmpsetup.sh
+      echo "mkdir -p $HOME/tmp" >> $AUTOPSY_LOCATION/bin/tmpsetup.sh
       chmod 755 $AUTOPSY_LOCATION/bin/tmpsetup.sh
 
       # include this line to print all set variables