mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
26 lines
702 B
C#
26 lines
702 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Flow.Launcher.Plugin.BrowserBookmark.Models;
|
|
|
|
namespace Flow.Launcher.Plugin.BrowserBookmark;
|
|
|
|
public class CustomFirefoxBookmarkLoader : FirefoxBookmarkLoaderBase
|
|
{
|
|
public CustomFirefoxBookmarkLoader(CustomBrowser browser)
|
|
{
|
|
BrowserName = browser.Name;
|
|
BrowserDataPath = browser.DataDirectoryPath;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Path to places.sqlite
|
|
/// </summary>
|
|
public string BrowserDataPath { get; init; }
|
|
|
|
public string BrowserName { get; init; }
|
|
|
|
public override List<Bookmark> GetBookmarks()
|
|
{
|
|
return GetBookmarksFromPath(Path.Combine(BrowserDataPath, "places.sqlite"));
|
|
}
|
|
}
|