Skip to content

Commit 9823a2a

Browse files
authored
Merge branch 'dev' into administrator_mode
2 parents cf1d162 + 8fde82a commit 9823a2a

File tree

120 files changed

+2262
-243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+2262
-243
lines changed

Flow.Launcher.Core/Configuration/Portable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ private static void IndicateDeletion(string filePathTodelete)
135135
public void PreStartCleanUpAfterPortabilityUpdate()
136136
{
137137
// Specify here so this method does not rely on other environment variables to initialise
138-
var portableDataDir = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData");
139-
var roamingDataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher");
138+
var portableDataDir = DataLocation.PortableDataPath;
139+
var roamingDataDir = DataLocation.RoamingDataPath;
140140

141141
// Get full path to the .dead files for each case
142142
var portableDataDeleteFilePath = Path.Combine(portableDataDir, DataLocation.DeletionIndicatorFile);

Flow.Launcher.Core/Flow.Launcher.Core.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@
5858
<PackageReference Include="Droplex" Version="1.7.0" />
5959
<PackageReference Include="Flow.Launcher.Localization" Version="0.0.6" />
6060
<PackageReference Include="FSharp.Core" Version="9.0.303" />
61-
<PackageReference Include="Meziantou.Framework.Win32.Jobs" Version="3.4.4" />
61+
<PackageReference Include="Meziantou.Framework.Win32.Jobs" Version="3.4.5" />
6262
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.1" />
6363
<PackageReference Include="SemanticVersioning" Version="3.0.0" />
64-
<PackageReference Include="squirrel.windows" Version="1.5.2" NoWarn="NU1701" />
64+
<!-- Do not upgrade this to higher version since higher version removes UpdateManager instance -->
65+
<PackageReference Include="squirrel.windows" Version="1.9.0" NoWarn="NU1701" />
6566
<PackageReference Include="StreamJsonRpc" Version="2.22.11" />
6667
</ItemGroup>
6768

Flow.Launcher.Core/Plugin/PluginConfig.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Flow.Launcher.Infrastructure;
66
using Flow.Launcher.Plugin;
77
using System.Text.Json;
8+
using Flow.Launcher.Infrastructure.UserSettings;
89

910
namespace Flow.Launcher.Core.Plugin
1011
{
@@ -25,7 +26,7 @@ public static List<PluginMetadata> Parse(string[] pluginDirectories)
2526
// todo use linq when diable plugin is implmented since parallel.foreach + list is not thread saft
2627
foreach (var directory in directories)
2728
{
28-
if (File.Exists(Path.Combine(directory, "NeedDelete.txt")))
29+
if (File.Exists(Path.Combine(directory, DataLocation.PluginDeleteFile)))
2930
{
3031
try
3132
{

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ internal static async Task<bool> UninstallPluginAsync(PluginMetadata plugin, boo
807807
}
808808

809809
// Marked for deletion. Will be deleted on next start up
810-
using var _ = File.CreateText(Path.Combine(plugin.PluginDirectory, "NeedDelete.txt"));
810+
using var _ = File.CreateText(Path.Combine(plugin.PluginDirectory, DataLocation.PluginDeleteFile));
811811

812812
if (checkModified)
813813
{

0 commit comments

Comments
 (0)