plicit / scoop-search-multisource

Searches Scoop buckets: local, remote, zip, html
MIT License
39 stars 0 forks source link

Not using the scoop correct path #2

Closed MarioGK closed 2 years ago

MarioGK commented 2 years ago
PS C:\Users\mariogk> scoop-search-multisource.exe qbittorrent
____________________
#1 Searching  [buckets] C:\Users\mariogk\scoop\buckets
2022/07/23 01:43:29 Buckets folder does not exist - open C:\Users\mariogk\scoop\buckets: The system cannot find the path specified.

It is trying to use the default buckets path, but if you set a custom path on installation it errors.

plicit commented 2 years ago

@MarioGK , I implemented loading of the rootPath from your user's .config/scoop/config.json (where I think scoop is storing the path in your case). I ran a few basic tests but I don't use that feature myself, so please let me know whether the new v0.1.20220728 works for you.

MarioGK commented 2 years ago

Thank you now it works perfectly

Nightliss commented 2 years ago

@plicit well now it's broken for default path 😂 image

scoop config contains this: image

plicit commented 2 years ago

@Nightliss Sorry about that! I think that has a slightly different cause. I inserted a little code that searches the global scoop apps path for identifying already-installed apps, but you don't use global scoop apps so that directory doesn't exist which caused a fatal exit. Please test the new v0.1.20220804 and let me know if you still have a problem.

Nightliss commented 2 years ago

Tried and works again. Many thanks for fix :). So much better than vanilla search option.