Kaynağa Gözat

Put temp files in a tmpfs folder

Currently putting it in var/run/user, which may not be the best idea!
cinaeco 3 ay önce
ebeveyn
işleme
0c2286389d
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      scan-dialog

+ 2 - 1
scan-dialog

@@ -75,7 +75,8 @@ function run_scan {
 
   filename=$1/$2-$(date +"%Y-%m-%d-%H%M%S").$4
   filename=$(check_filename $filename)
-  tempname="./temp-$(date +%s).png"
+  userid=$(id -u $USER)
+  tempname="/var/run/user/$userid/temp-$(date +%s).png"
 
   echo "$7 $6 $x $y $filename"