Handle paths where waycast has no permission #12

Closed
opened 2026-07-02 01:54:57 +00:00 by xbazzi · 2 comments
Collaborator

in src/daemon/scanners/mod.rs:

impl WaycastScanner for FileScanner {
    fn scan(&self) -> Vec<LauncherItem> {
        let mut walker = WalkBuilder::new(self.paths.iter().next().unwrap());
...

figure out a way to gracefully return something valid when we can't open the dir

in src/daemon/scanners/mod.rs: ```rust impl WaycastScanner for FileScanner { fn scan(&self) -> Vec<LauncherItem> { let mut walker = WalkBuilder::new(self.paths.iter().next().unwrap()); ... ``` figure out a way to gracefully return something valid when we can't open the dir
Author
Collaborator

error:

thread 'tokio-runtime-worker' (878499) panicked at src/daemon/scanners/mod.rs:91:68:
called Option::unwrap() on a None value
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
2026-07-02T01:51:48.002952Z ERROR tokei::utils::fs: Permission denied (os error 13) reading /home/xbazzi/repos/gios/gios-project1/mtgf/courses
2026-07-02T01:51:49.805457Z ERROR tokei::utils::fs: Permission denied (os error 13) reading /home/xbazzi/repos/gios/gios-project1/mtgf/courses

error: thread 'tokio-runtime-worker' (878499) panicked at src/daemon/scanners/mod.rs:91:68: called `Option::unwrap()` on a `None` value note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 2026-07-02T01:51:48.002952Z ERROR tokei::utils::fs: Permission denied (os error 13) reading /home/xbazzi/repos/gios/gios-project1/mtgf/courses 2026-07-02T01:51:49.805457Z ERROR tokei::utils::fs: Permission denied (os error 13) reading /home/xbazzi/repos/gios/gios-project1/mtgf/courses
xbazzi self-assigned this 2026-07-02 01:55:36 +00:00
xbazzi added this to the v1.0.0 milestone 2026-07-02 01:57:05 +00:00
javif89 modified the milestone from v1.0.0 to v1.1.0 2026-07-02 23:29:47 +00:00
Author
Collaborator

Fixed by #20

Fixed by #20
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#12
No description provided.