Fix hardcoded database path #7

Closed
opened 2026-07-01 23:05:42 +00:00 by javif89 · 0 comments
Owner

Several pieces of the app that instantiace WaycastData use a hard coded path "waycast.db".

We need to use waycast_config::data_dir() to put it on the XDG data path in production.

Realistically this is an architecture issue that would be solved by making a central waycast facade that holds the configured underlying pieces like the database and scanners.

However, that might be out of scope for the initial v2 release, so we can come up with an intermediate solution for now.

Several pieces of the app that instantiace `WaycastData` use a hard coded path `"waycast.db"`. We need to use waycast_config::data_dir() to put it on the XDG data path in production. Realistically this is an architecture issue that would be solved by making a central waycast facade that holds the configured underlying pieces like the database and scanners. However, that might be out of scope for the initial v2 release, so we can come up with an intermediate solution for now.
javif89 added this to the v1.0.0 milestone 2026-07-01 23:05:42 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
waycasthq/waycast#7
No description provided.