You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the ~/temp folder to test programs/scripts and for general purpose tasks. Noticed that it kept getting wiped, so I used inotifywait and auditd to track it down - turns out the culprit was ente auth.
Using the custom script below:
click to view script
#!/bin/bash
DIR_PATH=/home/nktnet/temp
whileread -r path action file;do
event_text="Event: $action on $file in $path"echo"${event_text}"| tee -a temp-monitor-log.txt
# hyprctl notify 1 5000 0 "${event_text}" done<<(inotifywait -mr -e modify,create,delete,move "${DIR_PATH}")
The results are:
Event: CREATE on please-keep-this-file.txt in /home/nktnet/temp/
Event: CREATE on 4913 in /home/nktnet/temp/
Event: DELETE on 4913 in /home/nktnet/temp/
Event: DELETE on please-keep-this-file.txt in /home/nktnet/temp/
I believe the file 4913 was created by Ente. The file please-keep-this-file.txt was created by me, and was deleted by Ente incorrectly.
Would it be possible to store ente-auth's temporary files in the XDG_CACHE_HOME directory as specified by the XDG Base Directories? For example, in
${XDG_CACHE_HOME}/ente # which defaults to
${HOME}/.cache/ente
This way user files on the home directory are not randomly deleted - this was difficult to debug (unsure which apps was deleting ~/temp), and lost quite a bit of work.
Edit: I have understood the issue and seems like it was creating dir in home instead of Documents folder. Anyways I have updated the logic as you suggested. Thanks!
Description
I use the
~/temp
folder to test programs/scripts and for general purpose tasks. Noticed that it kept getting wiped, so I usedinotifywait
and auditd to track it down - turns out the culprit was ente auth.Using the custom script below:
click to view script
The results are:
I believe the file
4913
was created by Ente. The fileplease-keep-this-file.txt
was created by me, and was deleted by Ente incorrectly.Further tracking with the Audit Framework using the rule:
shows the output:
Would it be possible to store ente-auth's temporary files in the
XDG_CACHE_HOME
directory as specified by the XDG Base Directories? For example, inThis way user files on the home directory are not randomly deleted - this was difficult to debug (unsure which apps was deleting ~/temp), and lost quite a bit of work.
The code in question is likely this:
ente/auth/lib/core/configuration.dart
Lines 73 to 93 in 8d91b85
Related issue #2564, where user data is stored in
~/ente
instead of${XDG_DATA_HOME}/ente
.Thanks ~
Version
v3.0.17
What product are you using?
Ente Auth (installed ente-auth-bin from AUR)
What platform are you using?
Desktop - Linux
The text was updated successfully, but these errors were encountered: