Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox bookmarks and homepage #13

Open
MakisH opened this issue Mar 25, 2021 · 2 comments
Open

Firefox bookmarks and homepage #13

MakisH opened this issue Mar 25, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@MakisH
Copy link
Member

MakisH commented Mar 25, 2021

It would be nice to have precice.org as the homepage in Firefox, together with some common bookmarks.

The VM should also guide people on what they can actually try in it.

@MakisH MakisH added the enhancement New feature or request label Feb 16, 2022
@fsimonis
Copy link
Member

fsimonis commented Apr 17, 2024

There are essentially 4 ways to do this:

  1. Manage Bookmarks > Import and Backup > Export/Import to/from HTML
    An import will keep existing bookmarks.
  2. Manage Bookmarks > Import and Backup > Backup/Restore (from json)
    Restoring will remove existing bookmarks. I cannot find a way to do this from CLI though.
    There is an internal testing JS function to trigger an import. But this isn't very sustainable.
  3. Modify the sqlite3 database places in the profile directory.
    Could work, but needs some understanding.
  4. Create bookmarks in Firefox, then copy the places database.
    To provision a new firefox profile, replace its places with the backup.

The latest is easy and "just works". Also edits are easy to do directly in Firefox.

Getting the default profile directory from ~/.mozilla/firefox/profiles.ini is a bit fiddly, but can be achieved using a bit of python and the STL package configparser.

@MakisH
Copy link
Member Author

MakisH commented Apr 17, 2024

We definitely need something that works from the CLI, and one of the issues is indeed getting (or even creating) the default profile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants