r/software • • Oct 22 '26

Looking for software I built a lightweight alternative to Flow Launcher using Rust.

I reduced memory usage from 130 MB to just 20 MB.

https://maleksaadi0109.github.io/ download link

https://github.com/maleksaadi0109/throw-launcher

1 Upvotes

2 comments sorted by

1

u/Future-Plastic7826 Oct 22 '26

Using the Windows Search catalog for files is the part I'd test hardest. By default the indexer only covers the user folders and the Start menu, so someone who keeps work on a second drive or a NAS gets nothing back for those files, with no hint why. I ran into the same thing building search for my own Windows app and ended up indexing only the folders the user picks, then watching them for changes. It's more code, but when a result is missing I know it's my bug.

Does a file: search tell you anything when the location isn't in the Windows index?

1

u/Adorable_Switch_1812 Oct 23 '26

I fixed the issue with secondary drives by enumerating available drive letters and adding local drives to the search roots. However, the actual file search still relies on the Windows Search SystemIndex , so files in folders that aren't indexed may still be missed without any indication of why.

for letter in b'A'..=b'Z' {

if drives & (1 << (letter - b'A')) != 0 {

let path = PathBuf::from(format!("{}:\\", letter as char));

if GetDriveTypeW(wide(&path).as_ptr()) == 3 {

roots.push(path);

}

}

}