소스 검색

Put temp files in a tmpfs folder

Currently putting it in var/run/user, which may not be the best idea!
cinaeco 4 달 전
부모
커밋
0c2286389d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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"