Skip to content

Modify paths using environment variables #109

Closed

Description

@xmha97

Hi @filips123
Why is runtime installed for the current user?
image
I think runtime should be installed in "Program Files" because I do not want to install a separate Firefox for each user.

Activity

  1. added
    bug
    on Dec 27, 2021
  2. changed the title [-]Runtime installed for current user[/-] [+]Runtime installed for the current user[/+] on Dec 27, 2021
  3. filips123 commented on Dec 27, 2021

    @filips123
    Owner

    Originally runtime was installed for all users, but then I changed it (df05306, #10, #24) to a user-specific directory. This is because installing it for all users requires that directory to be writable by all users, which isn't so good for security and could cause other problems. If you still want to globally install runtime, you will have to edit the source code (change dirs.userdata.join("runtime") to dirs.sysdata.join("runtime")) and manually build and install the project.

  4. xmha97 commented on Dec 27, 2021

    @xmha97
    ContributorAuthor

    OK, Thanks for your explanation.

  5. changed the title [-]Runtime installed for the current user[/-] [+]Change the runtime path[/+] on Dec 30, 2021
  6. reopened this on Dec 30, 2021
  7. xmha97 commented on Dec 30, 2021

    @xmha97
    ContributorAuthor

    I want to change the runtime path.
    Do I have to create symlinks?

    mklink /D "%AppData%\FirefoxPWA\runtime" "%ProgramFiles%\FirefoxPWA\runtime"

    I looking for a environment variable or config file to set runtime path.

  8. filips123 commented on Dec 30, 2021

    @filips123
    Owner

    Currently, you cannot modify any paths using environment variables. However, you could use symlinks for each user to some global directory:

    1. Move existing runtime from %AppData%\FirefoxPWA\runtime to %ProgramFiles%\FirefoxPWA\runtime. Do this only for one user, just so you will have one global copy of the runtime.
    2. Then, for each user you have, remove old its runtime (if it exists) and symlink %AppData%\FirefoxPWA\runtime to %ProgramFiles%\FirefoxPWA\runtime (with your command).
    3. You may also have to make %ProgramFiles%\FirefoxPWA\runtime writable by all users for Firefox updates to work, but I'm not sure.

    This way PWAsForFirefox will think runtime is installed for each user, but you will have only one global copy of it.

  9. xmha97 commented on Dec 30, 2021

    @xmha97
    ContributorAuthor

    Will I can modify paths using environment variables in the future?

  10. changed the title [-]Change the runtime path[/-] [+]Modify paths using environment variables[/+] on Dec 30, 2021
  11. filips123 commented on Dec 30, 2021

    @filips123
    Owner

    Yes, I will probably implement something in the future.

  12. added this to the 2.0.0 milestone on Jan 1, 2022
  13. added
    enhancement
    and removed
    bug
    on Jun 27, 2022
  14. moved this from To Do to In Progress in PWAsForFirefoxon Jul 28, 2022
  15. Repository owner moved this from In Progress to Done in PWAsForFirefoxon Jul 31, 2022
  16. added a commit that references this issue on Dec 12, 2024
    2fae97e
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

    enhancement

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions