https://bugs.kde.org/show_bug.cgi?id=512546

            Bug ID: 512546
           Summary: Haruna unable to create/open database if state
                    directory doesn't exist
    Classification: Applications
           Product: Haruna
      Version First 1.6.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: generic
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
I've noticed that haruna doesn't seem to remember the last played files and
remember the last playlist state (I enabled this option).

There are errors in console about not being able to create playlist cache or
open database (details in observed result section).

Looked quick with strace and found out that it tries to access files in
`~/.local/share/haruna` on my machine (that didn't exist). Created this folder
and it seemed to fix the issue.

STEPS TO REPRODUCE
1. Delete haruna state directory (if it exists)
2. Run haruna
3. Open a video file and close the haruna
4. Open haruna again

OBSERVED RESULT
The recent files list is empty.

In console:
```
unknown() : Failed to create playlist cache
unknown() : Could not open database: QSqlError("14", "Error opening database",
"unable to open database file")
unknown() : QSqlDatabasePrivate::database: unable to open database: "unable to
open database file Error opening database"
unknown() : QSqlQuery::prepare: database not open
unknown() : QSqlError("", "Unable to fetch row", "No query") ""
```

EXPECTED RESULT
The last played file should appear in the recent files list without creating
the state application folder manually.

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.8-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 128 GiB of RAM (125.7 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 5070 Ti

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to