Browse code

Display a few tips on stdout at startup.

Xavier G authored on 26/02/2016 14:54:07
Showing 1 changed files

... ...
@@ -46,14 +46,22 @@ if [ -x "$(which proot)" ]; then
46 46
 	# Directory to replace /tmp
47 47
 	tmp_dir="/run/user/$(id -u)/tmp.$$"
48 48
 	# Directory for uploads
49
-	upload_dir="${HOME}/Uploads/${firefox_session}"
49
+	upload_dir="${HOME}/Uploads"
50 50
 	# Directory for downloads
51
-	download_dir="${HOME}/Downloads/${firefox_session}"
51
+	download_dir="${HOME}/Downloads"
52 52
 
53 53
 	for directory in {home,tmp,{up,down}load}_dir; do
54 54
 		mk_dir "${!directory}" 0700
55 55
 	done
56 56
 
57
+	echo 'Tips:'
58
+	echo "  Your fake home is ${home_dir}"
59
+	echo "  Your fake /tmp is ${tmp_dir}"
60
+	echo '  Do you need to upload files?'
61
+	echo "    Put them in ${upload_dir}"
62
+	echo '  Do you need to download files?'
63
+	echo "    They should end up in ${download_dir}"
64
+
57 65
 	# Leverage proot to make iceweasel believe that:
58 66
 	#   - the home directory is almost empty
59 67
 	#   - its configuration directory is still there