Skip to content

Idea: Preseed mode for portability #893

Description

@probonopd

Use case: I as a user store my Firefox AppImage in a read-only loction, but nevertheless want it to use my custom pre-configuration. I do not want to write back changes to the profile to the read-only location (e.g., in order to not ever change my defaults, or collect persistent cookies).

We have portable mode which means that a custom $HOME is used. In some situations it may be desirable to only pre-seed $HOME, e.g., add initial configuration if it is not there yet, along those lines:

if [ ! -e "$HOME/.mozilla" ]  ; then
  cp -r /isodevice/Applications/Firefox-64.0.glibc2.3.4-x86_64.AppImage.home/.mozilla "$HOME"
  sudo chown -R "$USER" "$HOME/.mozilla"
fi

How can we do this efficiently in runtime.c? Especially the permission setting should be done directly when copying since we cannot assume we can use sudo.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions