You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @filips123
Why is runtime installed for the current user?
I think runtime should be installed in "Program Files" because I do not want to install a separate Firefox for each user.
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.
Currently, you cannot modify any paths using environment variables. However, you could use symlinks for each user to some global directory:
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.
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).
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.
Activity
[-]Runtime installed for current user[/-][+]Runtime installed for the current user[/+]filips123 commentedon Dec 27, 2021
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")todirs.sysdata.join("runtime")) and manually build and install the project.xmha97 commentedon Dec 27, 2021
OK, Thanks for your explanation.
[-]Runtime installed for the current user[/-][+]Change the runtime path[/+]xmha97 commentedon Dec 30, 2021
I want to change the runtime path.
Do I have to create symlinks?
I looking for a environment variable or config file to set runtime path.
filips123 commentedon Dec 30, 2021
Currently, you cannot modify any paths using environment variables. However, you could use symlinks for each user to some global directory:
%AppData%\FirefoxPWA\runtimeto%ProgramFiles%\FirefoxPWA\runtime. Do this only for one user, just so you will have one global copy of the runtime.%AppData%\FirefoxPWA\runtimeto%ProgramFiles%\FirefoxPWA\runtime(with your command).%ProgramFiles%\FirefoxPWA\runtimewritable 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.
xmha97 commentedon Dec 30, 2021
Will I can modify paths using environment variables in the future?
[-]Change the runtime path[/-][+]Modify paths using environment variables[/+]filips123 commentedon Dec 30, 2021
Yes, I will probably implement something in the future.
Add support for changing directories using run-time environment varia…