-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7924580
commit 31908da
Showing
12 changed files
with
651 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 11 additions & 4 deletions
15
.idea/.idea.FlowLauncher Add2Path Plugin/.idea/workspace.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
:: Hacked (skidded?) together with ChatGPT | ||
|
||
@echo off | ||
setlocal | ||
|
||
:: Define the path to the Flow.Launcher executable | ||
set "exePath=%LocalAppData%\FlowLauncher\Flow.Launcher.exe" | ||
|
||
:: Check if the executable exists | ||
if exist "%exePath%" ( | ||
echo Flow.Launcher executable found at %exePath% | ||
) else ( | ||
echo Flow.Launcher executable not found at %exePath% | ||
set /p "exePath=Please enter the path to the Flow.Launcher executable (the file itself, not the folder): " | ||
) | ||
|
||
|
||
:: Check if the file at the provided path exists | ||
if not exist "%exePath%" ( | ||
echo file not found at this path | ||
pause | ||
goto :end | ||
) | ||
) | ||
|
||
:: Display the path to the user | ||
echo Using executable: %exePath% | ||
|
||
:: Use PowerShell to set the executable to always run as administrator | ||
powershell -command "Set-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers' -Name '%exePath%' -Value 'RUNASADMIN'" | ||
|
||
echo The Flow.Launcher executable has been set to always run as administrator. | ||
pause | ||
:end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using System.Linq; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
|
||
namespace Flow.Launcher.Plugin.Add2Path | ||
{ | ||
|
||
static class ZipStringExtension | ||
{ | ||
public static IEnumerable<List<char>> Zip(this string str1, string str2) | ||
{ | ||
/* Zips two strings together, so that they may be iterated over. | ||
* Wrapper for Enumerable.Zip() method; convenient because it converts strings to lists and specifies to return zipped element as an | ||
* IEnumerable containing List<char>'s of the two chars for each index | ||
* Returns an IEnumerable containing Lists of two chars each. | ||
* The function can be called and iterated over like this: | ||
* foreach (List<char> chars in Zip(str1, str2) | ||
{ | ||
char char1 = chars[0]; char char2 = chars[1]; | ||
} | ||
*/ | ||
return str1.ToList().Zip(str2.ToList(), (char1, char2) => new List<char>() { char1, char2 }); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0-windows</TargetFramework> | ||
<AssemblyName>Flow.Launcher.Plugin.Add2Path</AssemblyName> | ||
<PackageId>Flow.Launcher.Plugin.Add2Path</PackageId> | ||
<Authors>HorridModz</Authors> | ||
<PackageProjectUrl>https://github.com/HorridModz/Flow.Launcher.Plugin.Add2Path</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/HorridModz/Flow.Launcher.Plugin.Add2Path</RepositoryUrl> | ||
<PackageTags>flow-launcher flow-plugin</PackageTags> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<Configurations>Debug;Release</Configurations> | ||
<Platforms>AnyCPU</Platforms> | ||
</PropertyGroup> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<DebugSymbols>false</DebugSymbols> | ||
<DebugType>None</DebugType> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFramework>net7.0-windows</TargetFramework> | ||
<AssemblyName>Flow.Launcher.Plugin.Add2Path</AssemblyName> | ||
<PackageId>Flow.Launcher.Plugin.Add2Path</PackageId> | ||
<Authors>HorridModz</Authors> | ||
<PackageProjectUrl>https://github.com/HorridModz/Flow.Launcher.Plugin.Add2Path</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/HorridModz/Flow.Launcher.Plugin.Add2Path</RepositoryUrl> | ||
<PackageTags>flow-launcher flow-plugin</PackageTags> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<Configurations>Debug;Release</Configurations> | ||
<Platforms>AnyCPU</Platforms> | ||
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent> | ||
<SignAssembly>False</SignAssembly> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Content Include="plugin.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<DebugSymbols>false</DebugSymbols> | ||
<DebugType>None</DebugType> | ||
</PropertyGroup> | ||
|
||
<Content Include="icon.png"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="plugin.json"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Flow.Launcher.Plugin" Version="4.1.0" /> | ||
</ItemGroup> | ||
<Content Include="icon.png"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</Content> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<ItemGroup> | ||
<PackageReference Include="Flow.Launcher.Plugin" Version="4.1.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.