mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
try again
This commit is contained in:
parent
fc96eeda12
commit
8f718fdcf3
2 changed files with 8 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue