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
var portableDataDir =
Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(),
"UserData");
var roamingDataDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
"FlowLauncher");
var portableDataDir = DataLocation.PortableDataPath;
var roamingDataDir = DataLocation.RoamingDataPath;
// 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";
/// <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)
{
var rel = Path.GetRelativePath(