try again

This commit is contained in:
Hongtao Zhang 2024-03-27 17:32:24 -05:00
parent fc96eeda12
commit 8f718fdcf3
2 changed files with 8 additions and 5 deletions

View file

@ -95,11 +95,8 @@ namespace Flow.Launcher.Core.Configuration
} }
// Specify here so this method does not rely on other environment variables to initialise // Specify here so this method does not rely on other environment variables to initialise
var portableDataDir = var portableDataDir = DataLocation.PortableDataPath;
Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), var roamingDataDir = DataLocation.RoamingDataPath;
"UserData");
var roamingDataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
"FlowLauncher");
// Get full path to the .dead files for each case // Get full path to the .dead files for each case

View file

@ -15,6 +15,12 @@ namespace Flow.Launcher.Plugin.SharedCommands
{ {
private const string FileExplorerProgramName = "explorer"; private const string FileExplorerProgramName = "explorer";
/// <summary>
/// Checks if <paramref name="subPath"/> is a subpath of <paramref name="basePath"/>
/// </summary>
/// <param name="subPath"></param>
/// <param name="basePath"></param>
/// <returns></returns>
public static bool IsSubPathOf(this string subPath, string basePath) public static bool IsSubPathOf(this string subPath, string basePath)
{ {
var rel = Path.GetRelativePath( var rel = Path.GetRelativePath(