Bug 513267

Summary: "Last played video" is saved to the settings when this option is disabled.
Product: [Applications] Haruna Reporter: Barafu Albino Cheetah <barafu>
Component: genericAssignee: george fb <georgefb899>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.6.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Barafu Albino Cheetah 2025-12-12 21:06:44 UTC
SUMMARY
When the option "Settings -> Playback -> Open last played file on startup"  is set to off, the path to every played file is still saved into the settings file. This is unnecessary writing operation. It may leak protected data when a path from a removable storage or an encrypted storage is stored unencrypted. 

A user would assume that turning of the option would not save the data on what files are opened and erase the existing data too. 

STEPS TO REPRODUCE
1. Set Settings -> Playback -> Open last played file on startup. 
2. Save settings and  open another file
3. Open ~/.config/haruna/haruna.conf

OBSERVED RESULT
The line "LastPlayedFile=" with the path to the last file is present.

EXPECTED RESULT
The line to be removed completely

SOFTWARE/OS VERSIONS
Arch Linux
Version 1.6.0