Skip to content

Autoimport fails to find Firefox profiles & issue with hardcoded profiles path when IsRelative=0 #791

@oleole39

Description

@oleole39

Hello,

Profiles.ini content
[Profile3]
Name=ABCD
IsRelative=0
Path=/path/to/removable/drive/ABCD

[Install4F96D1932A9F858E]
Default=/path/to/custom/path/my-main-profile
Locked=1

[Profile1]
Name=Main
IsRelative=0
Path=/path/to/custom/path/my-main-profile

[Profile0]
Name=default-release
IsRelative=1
Path=zsq8tck1.default-release

[InstallD087BC9767A4CB84]
Default=1koqf71l.default-nightly
Locked=1

[General]
StartWithLastProfile=1
Version=2
  1. buku --ai shows the following (i.e. bookmarks from an empty default profile) despite ~/.mozilla/firefox/profiles.ini contains multiple profiles (cf. above):

    me@comp:~$ buku --ai
    Generate auto-tag (YYYYMonDD)? (y/n): y
    Add parent folder names as tags? (y/n): y
    Import bookmarks from chromium? (y/n): n
    Import bookmarks from Firefox? (y/n): y
    1. Firefox Nightly blog
       > https://blog.nightly.mozilla.org/
       # 2024oct30,firefox nightly resources,menu
    
    2. Mozilla Bug Tracker
       > https://bugzilla.mozilla.org/
       # 2024oct30,firefox nightly resources,menu
    
    3. Mozilla Developer Network
       > https://developer.mozilla.org/
       # 2024oct30,firefox nightly resources,menu
    
    4. Nightly Tester Tools
       > https://addons.mozilla.org/firefox/addon/nightly-tester-tools/
       # 2024oct30,firefox nightly resources,menu
    
    5. Planet Mozilla
       > https://planet.mozilla.org/
       # 2024oct30,firefox nightly resources,menu
    
    6. Get Involved
       > https://www.mozilla.org/contribute/?utm_medium=firefox-desktop&utm_source=bookmarks-toolbar&utm_campaign=new-users-nightly&utm_content=-global
       # 2024oct30,toolbar
    
    
    Auto-generated tag: 2024Oct30
    
  2. As for trying it with FIREFOX_PROFILE env variable:

    me@comp:~$ FIREFOX_PROFILE="my-main-profile" buku --ai
    Generate auto-tag (YYYYMonDD)? (y/n): y
    Add parent folder names as tags? (y/n): y
    Import bookmarks from chromium? (y/n): n
    
    Auto-generated tag: 2024Oct30
    

    I understand it can't work since that profile is at a custom path (/path/to/custom/path/my-main-profile) whereas the default path is harcoded in buku's code:

    buku/buku

    Line 2879 in 48bf29e

    ff_bm_db_paths = {s: '~/.mozilla/firefox/{}/places.sqlite'.format(s)

    Maybe we could have FIREFOX_PROFILE_PATH instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions