Search code examples
perforcep4vp4win

How do I make P4V set the Perforce environment variables?


P4WIN has a menu item use current as default which sets the currently selected perforce connection to the Windows environment variables. I'd like to get the same functionality out of P4V, but I haven't been able to locate the option. Does anyone know where to find this, or how to add this functionality?

This post has a work around for the command line, but I'd like to do the same thing from the GUI.


Solution

  • In P4V

    1. Connection->Environment Settings...
    2. Check "Use current connection for environment settings".

    This works well when you have the following settings:

    1. Edit->Preferences...
    2. Connections
    3. "When the application launches:", set to "Open the connection specified by your Perforce environment settings"