We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$SCOOP
1 parent fe76bbe commit 4909d69Copy full SHA for 4909d69
1 file changed
src/detection/packages/packages_windows.c
@@ -1,6 +1,7 @@
1
#include "packages.h"
2
#include "common/processing.h"
3
#include "util/stringUtils.h"
4
+#include "util/path.h"
5
6
#include <handleapi.h>
7
#include <fileapi.h>
@@ -37,10 +38,11 @@ static void detectScoop(FFPackagesResult* result)
37
38
{
39
FF_STRBUF_AUTO_DESTROY scoopPath = ffStrbufCreateA(MAX_PATH + 3);
40
- const char* scoopEnv = getenv("SCOOP");
41
- if(ffStrSet(scoopEnv))
+ if(ffFindExecutableInPath("scoop.cmd", &scoopPath) == NULL)
42
43
- ffStrbufAppendS(&scoopPath, scoopEnv);
+ // C:\Users\$USER\scoop\shims\scoop.cmd
44
+ ffStrbufSubstrBeforeLastC(&scoopPath, '\\');
45
46
ffStrbufAppendS(&scoopPath, "/apps/*");
47
}
48
else
0 commit comments