Repository navigation
Commit 1e2a320
fix(search): actually move stock-engine profiles to pit.world (#143)
3.17.0 only replaced an engine the launcher had set itself, so a profile on
one of Chromium's stock engines (Ecosia from the choice screen, Google, Bing)
kept it, and .tron-search was still written as pit, so it never retried.
pit.world then never showed in chrome://settings/searchEngines either, since
Chromium only adds the default to that list.
- A one-time pass (.tron-search-stock) also replaces a stock engine nobody
edited (prepopulate_id > 0, safe_for_autoreplace). Edited engines, engines
the user added, and `tron search <x>` are still left alone.
- Clear default_search_provider.guid and rewrite the mirrored copy: Chromium
otherwise re-selects the old engine from Web Data by that guid.
- Skip while the profile is open (SingletonLock -> live pid): Chromium
rewrites Preferences on exit and the edit would be lost. Marks are written
only after the edit actually lands.
Checked against a copy of a real Ecosia profile on Chromium 152: pit.world
becomes the default and is added to the keywords table.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4837b76 commit 1e2a320
2 files changed
Lines changed: 111 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
500 | 519 | | |
501 | 520 | | |
502 | 521 | | |
| |||
505 | 524 | | |
506 | 525 | | |
507 | 526 | | |
508 | | - | |
| 527 | + | |
| 528 | + | |
509 | 529 | | |
510 | 530 | | |
511 | 531 | | |
512 | 532 | | |
513 | 533 | | |
| 534 | + | |
514 | 535 | | |
515 | 536 | | |
516 | 537 | | |
| |||
522 | 543 | | |
523 | 544 | | |
524 | 545 | | |
525 | | - | |
| 546 | + | |
526 | 547 | | |
527 | 548 | | |
528 | 549 | | |
| |||
532 | 553 | | |
533 | 554 | | |
534 | 555 | | |
535 | | - | |
536 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
537 | 562 | | |
538 | 563 | | |
539 | 564 | | |
540 | 565 | | |
541 | 566 | | |
542 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
543 | 575 | | |
544 | 576 | | |
545 | 577 | | |
546 | 578 | | |
547 | 579 | | |
548 | 580 | | |
549 | 581 | | |
550 | | - | |
551 | | - | |
552 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
553 | 588 | | |
554 | 589 | | |
555 | 590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
234 | 300 | | |
235 | 301 | | |
236 | 302 | | |
| |||
0 commit comments