Skip to content

Commit 1697544

Browse files
committed
Add example code comments
1 parent a74a599 commit 1697544

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/FirefoxBookmarkLoader.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ public override List<Bookmark> GetBookmarks()
270270
/// <summary>
271271
/// Path to places.sqlite
272272
/// </summary>
273+
/// <remarks></remarks>
273274
private static string PlacesPath
274275
{
275276
get
@@ -295,6 +296,33 @@ private static string PlacesPath
295296

296297
var indexOfDefaultProfileAttributePath = lines.IndexOf("Path=" + defaultProfileFolderName);
297298

299+
/*
300+
Current profiles.ini structure example as of Firefox version 69.0.1
301+
302+
[Install736426B0AF4A39CB]
303+
Default=Profiles/7789f565.default-release <== this is the default profile this plugin will get the bookmarks from. When opened Firefox will load the default profile
304+
Locked=1
305+
306+
[Profile2]
307+
Name=newblahprofile
308+
IsRelative=0
309+
Path=C:\t6h2yuq8.newblahprofile <== Note this is a custom location path for the profile user can set, we need to cater for this in code.
310+
311+
[Profile1]
312+
Name=default
313+
IsRelative=1
314+
Path=Profiles/cydum7q4.default
315+
Default=1
316+
317+
[Profile0]
318+
Name=default-release
319+
IsRelative=1
320+
Path=Profiles/7789f565.default-release
321+
322+
[General]
323+
StartWithLastProfile=1
324+
Version=2
325+
*/
298326
// Seen in the example above, the IsRelative attribute is always above the Path attribute
299327
var relativeAttribute = lines[indexOfDefaultProfileAttributePath - 1];
300328

0 commit comments

Comments
 (0)