BUGFIX BookmarksRunner: Fix wrong default profile extraction, remove caching
AbandonedPublic

Authored by alex on Mar 22 2020, 7:37 AM.

Details

Reviewers
bruns
z3ntu
apol
broulik
davidedmundson
Group Reviewers
Plasma
Summary

Before this patch the path to the default profile database was once read and then written in the config. And as long as this file exists this value would be used. But if the user changes the default profile in Firefox the old profile will still be used (as long as it is not deleted).

And the default profile was also not always correctly extracted (this configuration got only edited in the about:profiles page in Firefox):

Test Plan

Test if the bookmarks are correctly displayed (with a single profile), add a new profile and restart KRunner, set the default profile back to the old profile and restart KRunner.
The bookmarks should always be displayed.

Diff Detail

Repository
R120 Plasma Workspace
Branch
bookmarks_firefox_bugfix (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 24054
Build 24072: arc lint + arc unit
alex created this revision.Mar 22 2020, 7:37 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 22 2020, 7:37 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
alex requested review of this revision.Mar 22 2020, 7:37 AM
alex added a reviewer: Plasma.Mar 22 2020, 7:38 AM
alex updated this revision to Diff 78205.Mar 22 2020, 9:05 AM

Add check if profilePath is empty

bruns added a comment.Mar 30 2020, 6:03 PM

Can you split out the early-return part for the QSQLite driver and submit it as a preparation patch?

It adds quite some noise to the diff due to the whitespace changes (though I fully agree it is the better coding pattern).

bruns added a comment.Mar 30 2020, 6:06 PM

Regarding the summary:

  1. Wrap the lines at <80 characters
  2. Describe the screenshot textually
bruns added a comment.Mar 30 2020, 6:08 PM

Also keep code lines at < 80 characters

bruns requested changes to this revision.Mar 30 2020, 6:27 PM

This should be 3 submission:

  1. early return/indentation changes (preparation)
  2. always read default profile from FF config, do not write "dbfile" to runner config
  3. fix lookup of default profile name
This revision now requires changes to proceed.Mar 30 2020, 6:27 PM
alex abandoned this revision.May 1 2020, 1:01 PM

Is handled in separate patches.