Skip to content

Commit ee5345a

Browse files
committed
Change to get application folder name dynamically
so this is that the portable version can have the folder name changed to anything else and will still work
1 parent b786b1c commit ee5345a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Flow.Launcher.Core/Configuration/Portable.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using Flow.Launcher.Infrastructure.Logger;
99
using Flow.Launcher.Infrastructure.UserSettings;
1010
using Flow.Launcher.Plugin.SharedCommands;
11+
using System.Linq;
1112

1213
namespace Flow.Launcher.Core.Configuration
1314
{
@@ -19,7 +20,11 @@ public class Portable : IPortable
1920
/// <returns></returns>
2021
private UpdateManager NewUpdateManager()
2122
{
22-
return new UpdateManager(string.Empty, Constant.FlowLauncher, Constant.RootDirectory);
23+
var applicationFolderName = Constant.ApplicationDirectory
24+
.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None)
25+
.Last();
26+
27+
return new UpdateManager(string.Empty, applicationFolderName, Constant.RootDirectory);
2328
}
2429

2530
public void DisablePortableMode()

0 commit comments

Comments
 (0)