Skip to content

Commit 79bcf8b

Browse files
committed
Use system environment for Windows app path
1 parent 097633e commit 79bcf8b

File tree

1 file changed

+1
-1
lines changed
  • Plugins/Flow.Launcher.Plugin.Program

1 file changed

+1
-1
lines changed

Plugins/Flow.Launcher.Plugin.Program/Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class Main : ISettingProvider, IAsyncPlugin, IPluginI18n, IContextMenu, I
7272
private const string ExeUninstallerSuffix = ".exe";
7373
private const string InkUninstallerSuffix = ".lnk";
7474

75-
private const string WindowsAppPath = "c:\\program files\\windowsapps";
75+
private static readonly string WindowsAppPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "WindowsApps");
7676

7777
static Main()
7878
{

0 commit comments

Comments
 (0)