cordoro
cordoro

Reputation: 107

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.

Upvotes: 2

Views: 11506

Answers (2)

Matt
Matt

Reputation: 4850

On Windows go to Connection > Environment Settings... and click the checkbox at the bottom to set your current values in the environment. This menu option only appears on Windows.

Upvotes: 1

Matt Smith
Matt Smith

Reputation: 17424

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"

Upvotes: 4

Related Questions